diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-06 14:57:50 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-06 14:57:50 +0100 |
commit | 78d360e3f0d55d92d227b49c67779558f9fa5a14 (patch) | |
tree | 7ac04ffebddb17da9c2733381d642b8db956132e /tests/snippets | |
parent | cf27617f4d1e1a41be0d892236de460decd8ede0 (diff) | |
download | pygments-git-78d360e3f0d55d92d227b49c67779558f9fa5a14.tar.gz |
Fix #1046.
LESS lexer didn't handle single-line comments.
Diffstat (limited to 'tests/snippets')
-rw-r--r-- | tests/snippets/less/test_single_line_comments.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/snippets/less/test_single_line_comments.txt b/tests/snippets/less/test_single_line_comments.txt new file mode 100644 index 00000000..093f3b7b --- /dev/null +++ b/tests/snippets/less/test_single_line_comments.txt @@ -0,0 +1,21 @@ +---input--- +.font-light { + font-weight: 100; // Comment +} + +---tokens--- +'.' Punctuation +'font-light' Name.Class +' ' Text +'{' Punctuation +'\n ' Text +'font-weight' Keyword +':' Punctuation +' ' Text +'100' Literal.Number.Integer +';' Punctuation +' ' Text +'// Comment\n' Comment.Single + +'}' Punctuation +'\n' Text |