summaryrefslogtreecommitdiff
path: root/tests/snippets/properties/test_just_key_with_space.txt
diff options
context:
space:
mode:
authorJean Abou-Samra <jean@abou-samra.fr>2023-04-17 20:14:42 +0200
committerGitHub <noreply@github.com>2023-04-17 20:14:42 +0200
commitfdf182a7af85b1deeeb637ca970d31935e7c9d52 (patch)
tree1319d3dfc5591185a4e13e0d593b3b8fcfe41173 /tests/snippets/properties/test_just_key_with_space.txt
parentc5a2b23adaaadc08a7586a5eda72e9f7d6171012 (diff)
downloadpygments-git-fdf182a7af85b1deeeb637ca970d31935e7c9d52.tar.gz
Improve Java properties lexer (#2404)
Use special lexer rules for escapes; fixes catastrophic backtracking, and highlights them too. Fixes #2356
Diffstat (limited to 'tests/snippets/properties/test_just_key_with_space.txt')
-rw-r--r--tests/snippets/properties/test_just_key_with_space.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/snippets/properties/test_just_key_with_space.txt b/tests/snippets/properties/test_just_key_with_space.txt
index 660c37ca..833fe405 100644
--- a/tests/snippets/properties/test_just_key_with_space.txt
+++ b/tests/snippets/properties/test_just_key_with_space.txt
@@ -2,5 +2,7 @@
just\ key
---tokens---
-'just\\ key' Name.Attribute
+'just' Name.Attribute
+'\\ ' Literal.String.Escape
+'key' Name.Attribute
'\n' Text.Whitespace