summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-08-13 18:15:18 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-08-14 01:32:11 +0200
commitef85abba7f1e69b8bcfcca260f4818e1077894c4 (patch)
treefe0dbf97673a6f88b72dd5a36fb2c3a89b6095ba /queries
parentd06ab287662eef5945daca71ed77942a095fa5a1 (diff)
Query: highlight numbers
Diffstat (limited to 'queries')
-rw-r--r--queries/query/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm
index 19f2fbb0..51505544 100644
--- a/queries/query/highlights.scm
+++ b/queries/query/highlights.scm
@@ -23,5 +23,8 @@
"@" @punctuation.special
"_" @constant
+((parameters (identifier) @number)
+ (#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
+
((program . (comment) @include)
(#match? @include "^;\ +inherits\ *:"))