From e3329532602e1651deed6efbdae1b8a1f96c435e Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Sun, 4 Feb 2024 13:36:17 -0800 Subject: [PATCH] [language-c] Add missing anchor to constant pattern --- packages/language-c/grammars/tree-sitter-c/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-c/grammars/tree-sitter-c/highlights.scm b/packages/language-c/grammars/tree-sitter-c/highlights.scm index 096c75956..344340d1e 100644 --- a/packages/language-c/grammars/tree-sitter-c/highlights.scm +++ b/packages/language-c/grammars/tree-sitter-c/highlights.scm @@ -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))