Skip to content

Commit

Permalink
[language-c] Add missing anchor to constant pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Feb 4, 2024
1 parent cb7d4aa commit e332953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-c/grammars/tree-sitter-c/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
; macro preprocessors. The convention is decently strong in C/C++ that all-caps
; identifiers will refer to `#define`d things.
((identifier) @constant.other.c
(#match? @constant.other.c "[_A-Z][_A-Z0-9]*$")
(#match? @constant.other.c "^[_A-Z][_A-Z0-9]*$")
(#set! capture.shy))


Expand Down

0 comments on commit e332953

Please sign in to comment.