diff options
Diffstat (limited to 'src/grammar.json')
-rw-r--r-- | src/grammar.json | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/grammar.json b/src/grammar.json index 150b1a5..ae2f4ab 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -180,11 +180,11 @@ }, "class_shorthand": { "type": "PATTERN", - "value": "\\.[^\\s]+" + "value": "\\.[^\\p{White_Space}]+" }, "id_shorthand": { "type": "PATTERN", - "value": "#[^\\s]+" + "value": "#[^\\p{White_Space}]+" }, "attribute_name": { "type": "PATTERN", @@ -193,12 +193,16 @@ "attribute_value": { "type": "PATTERN", "value": "\"(\\\\.|[^\"\\\\])*\"" + }, + "_S": { + "type": "PATTERN", + "value": "\\p{White_Space}*" } }, "extras": [ { - "type": "PATTERN", - "value": "\\s" + "type": "SYMBOL", + "name": "_S" } ], "conflicts": [], |