From a85cf1a47c0acc6b22ed99b3228c827f5fb46927 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 21 Jun 2020 17:00:17 +0200 Subject: Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights --- queries/python/highlights.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'queries/python') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index cc11a5bd2..c56897804 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -9,6 +9,9 @@ ((identifier) @constant (match? @constant "^[A-Z][A-Z_0-9]*$")) +((identifier) @constant.builtin + (match? @constant.builtin "^__[a-zA-Z0-9_]*__$")) + ; Function calls (decorator) @function -- cgit v1.2.3-70-g09d2