Skip to content

Commit

Permalink
[LaTeX] Fix case-insensitive comment keyword (#4135)
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe authored Jan 14, 2025
1 parent 62ef832 commit ca2c76d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LaTeX/Bibtex.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ contexts:
pop: 1

comments:
- match: (@)Comment\b
- match: (@)(?i:comment)\b
scope: keyword.declaration.comment.bibtex
captures:
1: punctuation.definition.keyword.bibtex
Expand Down
15 changes: 15 additions & 0 deletions LaTeX/tests/syntax_test_bibtex.bib
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
% SYNTAX TEST "Packages/LaTeX/Bibtex.sublime-syntax"
@comment Ignore content
% <- comment.line.at-sign.bibtex keyword.declaration.comment.bibtex punctuation.definition.keyword.bibtex
%^^^^^^^^^^^^^^^^^^^^^^ comment.line.at-sign.bibtex
%^^^^^^^ keyword.declaration.comment.bibtex
@COMMENT Ignore content
% <- comment.line.at-sign.bibtex keyword.declaration.comment.bibtex punctuation.definition.keyword.bibtex
%^^^^^^^^^^^^^^^^^^^^^^ comment.line.at-sign.bibtex
%^^^^^^^ keyword.declaration.comment.bibtex
@Comment Ignore content
% <- comment.line.at-sign.bibtex keyword.declaration.comment.bibtex punctuation.definition.keyword.bibtex
%^^^^^^^^^^^^^^^^^^^^^^ comment.line.at-sign.bibtex
%^^^^^^^ keyword.declaration.comment.bibtex
@string{mar = "march"}
% <- meta.declaration.bibtex keyword.declaration.constant.bibtex punctuation.definition.keyword.bibtex
%^^^^^^ meta.declaration.bibtex keyword.declaration.constant.bibtex
Expand Down

0 comments on commit ca2c76d

Please sign in to comment.