This is an automated email from the ASF dual-hosted git repository.

hiedra pushed a commit to branch issues/#238
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit d347bf7fa57dd9d67cb83401d3db06ce925a661c
Author: mjesteve <[email protected]>
AuthorDate: Sun May 26 03:44:32 2024 +0200

    compiler: CSS support so that an identifier can be the value of an 
attribute-selector.
---
 compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSS.g  | 1 +
 .../src/main/antlr3/org/apache/royale/compiler/internal/css/CSSTree.g   | 2 ++
 2 files changed, 3 insertions(+)

diff --git 
a/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSS.g 
b/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSS.g
index 490f33aa8..d9d2d845b 100644
--- a/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSS.g
+++ b/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSS.g
@@ -537,6 +537,7 @@ attributeOperator
     
 attributeValue
     :    STRING
+    |    ID
     ;
        
 /* Lexer Rules */
diff --git 
a/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSSTree.g 
b/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSSTree.g
index 4809ea5c3..79879fd1d 100644
--- a/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSSTree.g
+++ b/compiler/src/main/antlr3/org/apache/royale/compiler/internal/css/CSSTree.g
@@ -422,6 +422,8 @@ attributeOperator
 attributeValue
     :    s = STRING
          { curAttribute += $s.text; }
+    |    s1 = ID
+         { curAttribute = $s1.text; }
     ;
        
 

Reply via email to