From 166818359030cd1649327160c9020d943a8de244 Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Sun, 1 May 2022 16:34:46 +0200 Subject: feat(lang): Cpon lang support (#2355) Co-authored-by: Fanda Vacek --- runtime/queries/cpon/highlights.scm | 26 ++++++++++++++++++++++++++ runtime/queries/cpon/indents.scm | 12 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 runtime/queries/cpon/highlights.scm create mode 100644 runtime/queries/cpon/indents.scm (limited to 'runtime') diff --git a/runtime/queries/cpon/highlights.scm b/runtime/queries/cpon/highlights.scm new file mode 100644 index 00000000..f85caf46 --- /dev/null +++ b/runtime/queries/cpon/highlights.scm @@ -0,0 +1,26 @@ +[ + (true) + (false) +] @constant.builtin.boolean +(null) @constant.builtin +(number) @constant.numeric +(pair + key: (_) @keyword) +(ipair + key: (_) @keyword) +(mpair + key: (_) @keyword) + +(string) @string +(escape_sequence) @constant.character.escape +(ERROR) @error + +"," @punctuation.delimiter +[ + "[" + "]" + "{" + "}" + "<" + ">" +] @punctuation.bracket diff --git a/runtime/queries/cpon/indents.scm b/runtime/queries/cpon/indents.scm new file mode 100644 index 00000000..53c82767 --- /dev/null +++ b/runtime/queries/cpon/indents.scm @@ -0,0 +1,12 @@ +[ + (meta) + (map) + (imap) + (array) +] @indent + +[ + "]" + "}" + ">" +] @outdent -- cgit v1.2.3-70-g09d2