diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index c09d934e5..2f4ebafba 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -153,6 +153,7 @@ | mojo | ✓ | ✓ | ✓ | `pixi` | | move | ✓ | | | | | msbuild | ✓ | | ✓ | | +| multicursor | ✓ | | | | | nasm | ✓ | ✓ | | `asm-lsp` | | nestedtext | ✓ | ✓ | ✓ | | | nginx | ✓ | | | | diff --git a/languages.toml b/languages.toml index df84837d1..b0c39809e 100644 --- a/languages.toml +++ b/languages.toml @@ -4225,6 +4225,16 @@ indent = { tab-width = 4, unit = " " } name = "gren" source = { git = "https://github.com/MaeBrooks/tree-sitter-gren", rev = "76554f4f2339f5a24eed19c58f2079b51c694152" } +[[language]] +name = "multicursor" +scope = "source.multicursor" +injection-regex = "multicursor" +file-types = ["multicursor"] + +[[grammar]] +name = "multicursor" +source = { git = "https://github.com/nik-rev/tree-sitter-multicursor", rev = "f6f868ecfe3de2fb2cd815cb40be55493f699a49" } + [[language]] name = "ghostty" scope = "source.ghostty" diff --git a/runtime/queries/multicursor/highlights.scm b/runtime/queries/multicursor/highlights.scm new file mode 100644 index 000000000..803442d95 --- /dev/null +++ b/runtime/queries/multicursor/highlights.scm @@ -0,0 +1,20 @@ +[ + (start_left_primary) + (end_left_primary) + (start_right_primary) + (end_right_primary) + (start_left) + (end_left) + (start_right) + (end_right) +] @punctuation.special + +(cursor_primary) @ui.cursor.primary +(cursor) @ui.cursor + +(left_primary (char) @ui.selection.primary) +(right_primary (char) @ui.selection.primary) +(left (char) @ui.selection) +(right (char) @ui.selection) + +(ERROR) @error