[language-c] Add missing anchor to constant pattern

This commit is contained in:
Andrew Dupont 2024-02-04 13:36:17 -08:00
parent cb7d4aad6c
commit e332953260

View File

@ -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))