From 36d41648bd13176cc5bdcbdade6cc5046acab6c1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 30 Oct 2023 01:45:29 +0100 Subject: Simplify regex --- src/grammar.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/grammar.json b/src/grammar.json index 960f0dd..e3e1f0a 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -180,11 +180,11 @@ }, "class_shorthand": { "type": "PATTERN", - "value": "\\.[^\\p{White_Space}]+" + "value": "\\.\\P{White_Space}+" }, "id_shorthand": { "type": "PATTERN", - "value": "#[^\\p{White_Space}]+" + "value": "#\\P{White_Space}+" }, "attribute_name": { "type": "PATTERN", -- cgit v1.2.3