Query: highlight numbers

This commit is contained in:
Santos Gallegos 2021-08-13 18:15:18 -05:00 committed by Stephan Seitz
parent d06ab28766
commit ef85abba7f

View file

@ -23,5 +23,8 @@
"@" @punctuation.special
"_" @constant
((parameters (identifier) @number)
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
((program . (comment) @include)
(#match? @include "^;\ +inherits\ *:"))