diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-10-28 02:15:21 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-28 02:15:21 +0200 |
commit | 2483cbddd9e7a02296bb928462ba7eb22551752d (patch) | |
tree | 53ca344996b9ed8db7e3b3fa609398692880a332 /grammar.js | |
parent | 497edc25a278edf743eef0b4ac1e31d079d3f4bf (diff) |
Allow ID- and class shorthands to have anythingv1.0.1
Diffstat (limited to 'grammar.js')
-rw-r--r-- | grammar.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: $ => /"(\\.|[^"\\])*"/, |