From 692b051b09935653befdb8f7ba8afdb640adf17b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 12 Jun 2023 09:54:30 -0600 Subject: feat!: drop modules, general refactor and cleanup --- runtime/queries/nim_format_string/highlights.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 runtime/queries/nim_format_string/highlights.scm (limited to 'runtime/queries/nim_format_string/highlights.scm') diff --git a/runtime/queries/nim_format_string/highlights.scm b/runtime/queries/nim_format_string/highlights.scm new file mode 100644 index 000000000..fde9e4ba0 --- /dev/null +++ b/runtime/queries/nim_format_string/highlights.scm @@ -0,0 +1,20 @@ +(string_literal) + +(matching_curlies + opening_curly: (opening_curly) @punctuation.special + equals: (equals)? @punctuation.special + closing_curly: (closing_curly) @punctuation.special) + +(format_specifiers + colon: (colon) @punctuation.delimiter + fill_align: (fill_align)? @keyword.conditional.ternary + sign: (sign)? @operator + hash: (hash)? @punctuation.special + zero: (zero)? @variable.member + min_width: (min_width)? @number + precision: (precision)? @number + type: (type)? @type) + +(matching_curlies + nim_expression: (nim_expression + escaped_curly: (escaped_curly)+ @string.escape) @none) -- cgit v1.2.3-70-g09d2