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 33a2d4bde85a6dbc2e34906a90f6a136419bb170
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 eb4a58b4c..6a4bec0ed 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
@@ -538,6 +538,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 8c581fed6..0322d3025 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