aboutsummaryrefslogtreecommitdiff
path: root/grammar.js
diff options
context:
space:
mode:
Diffstat (limited to 'grammar.js')
-rw-r--r--grammar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammar.js b/grammar.js
index 1e65ebc..5849132 100644
--- a/grammar.js
+++ b/grammar.js
@@ -43,8 +43,8 @@ module.exports = grammar({
),
),
- class_shorthand: $ => /\.[a-zA-Z0-9_-]+/,
- id_shorthand: $ => /#[a-zA-Z0-9_-]+/,
+ class_shorthand: $ => /\.[^\s]+/,
+ id_shorthand: $ => /#[^\s]+/,
attribute_name: $ => /[a-zA-Z0-9_-]+/,
attribute_value: $ => /"(\\.|[^"\\])*"/,