diff --git a/grammar.js b/grammar.js index 17d3374..b9987e6 100644 --- a/grammar.js +++ b/grammar.js @@ -265,7 +265,8 @@ module.exports = grammar({ "link", "italic", "bold", - "underline" + "underline", + "text-transform" ), _text_attr_key: ($) => "near", diff --git a/src/grammar.json b/src/grammar.json index ff4dd7a..08bf7eb 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1086,6 +1086,10 @@ { "type": "STRING", "value": "underline" + }, + { + "type": "STRING", + "value": "text-transform" } ] }, diff --git a/src/node-types.json b/src/node-types.json index 823463c..18b88b5 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -520,6 +520,10 @@ "type": "target-arrowhead", "named": false }, + { + "type": "text-transform", + "named": false + }, { "type": "tooltip", "named": false diff --git a/src/parser.c b/src/parser.c index 6d3394e..e9074d9 100644 Binary files a/src/parser.c and b/src/parser.c differ diff --git a/test/corpus/attributes.txt b/test/corpus/attributes.txt index 5b6ca14..6e580a6 100644 --- a/test/corpus/attributes.txt +++ b/test/corpus/attributes.txt @@ -57,6 +57,7 @@ foo.style.shadow: false foo.style.multiple: true foo.style.animated: true foo.style.link: https://to +foo.style.text-transform: uppercase -------------------------------------------------------------------------------- @@ -72,6 +73,7 @@ foo.style.link: https://to (shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value (boolean))))) (shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value (boolean))))) (shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))) + (shape (shape_key) (dot) (attribute (attr_key) (dot) (attribute (attr_key) (attr_value)))) ) ================================================================================ @@ -89,6 +91,7 @@ foo.style: { multiple: true animated: true link: https://to + text-transform: uppercase } -------------------------------------------------------------------------------- @@ -110,6 +113,7 @@ foo.style: { (attribute (attr_key) (attr_value (boolean))) (attribute (attr_key) (attr_value (boolean))) (attribute (attr_key) (attr_value)) + (attribute (attr_key) (attr_value)) ) ) )