diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 70b91efbe..0c6a83c54 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -94,7 +94,7 @@ ; Variables ((identifier) @constant - (#match? @constant "^[A-Z_]{2,}$")) + (#match? @constant "^_*[A-Z][A-Z\\d_]*$")) ((identifier) @type (#match? @type "^[A-Z]"))