Skip to content

Commit 4dc127f

Browse files
committed
Merge branch 'nearley'
2 parents ec6beef + 75e0f47 commit 4dc127f

File tree

7 files changed

+62
-4
lines changed

7 files changed

+62
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/src/generated/lang-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
| move || | | | | |
173173
| msbuild || || | | |
174174
| nasm ||| | | | `asm-lsp` |
175+
| nearley || | | || |
175176
| nestedtext |||| | | |
176177
| nginx || | | | | |
177178
| nickel || || | | `nls` |

helix-view/src/editor.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,6 @@ pub enum KittyKeyboardProtocolConfig {
438438
Auto,
439439
Disabled,
440440
Enabled,
441-
/// Whether to dim text in unfocused views or while jumping to labels.
442-
pub enable_focus_dimmer: bool,
443441
}
444442

445443
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, Eq, PartialOrd, Ord)]

languages.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4843,3 +4843,14 @@ indent = { tab-width = 2, unit = " " }
48434843
[[grammar]]
48444844
name = "slisp"
48454845
source = { git = "https://github.com/xenogenics/tree-sitter-slisp", rev = "29f9c6707ce9dfc2fc915d175ec720b207f179f3" }
4846+
4847+
[[language]]
4848+
name = "nearley"
4849+
scope = "source.nearley"
4850+
file-types = ["ne"]
4851+
comment-token = "#"
4852+
indent = { tab-width = 2, unit = " " }
4853+
4854+
[[grammar]]
4855+
name = "nearley"
4856+
source = { git = "https://github.com/mi2ebi/tree-sitter-nearley", rev = "4033073ac68953ff6a89989939ff9c3772aeb903" }
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
(comment) @comment.line
3+
4+
(string) @string
5+
(string "i" @keyword.modifier)
6+
7+
(identifier) @variable.other
8+
(rule_name (identifier) @function)
9+
(rule (generic (identifier) @function))
10+
11+
(directive) @keyword.directive
12+
(directive_value (identifier) @constant)
13+
(directive_value (string) @string)
14+
15+
(token) @constant
16+
17+
(generic
18+
"<" @punctuation.bracket
19+
(identifier) @type.parameter
20+
">" @punctuation.bracket
21+
)
22+
23+
(group "(" @punctuation.bracket ")" @punctuation.bracket)
24+
25+
(charset) @string.regexp
26+
(wildcard) @keyword
27+
28+
(quantifier) @function.builtin
29+
30+
(macro_name
31+
"[" @punctuation.bracket
32+
(identifier) @variable.parameter
33+
"]" @punctuation.bracket
34+
)
35+
(macro_arg) @variable.parameter
36+
37+
(rule "->" @operator)
38+
(rule_body "|" @operator)
39+
40+
(cont_block "@{%" @keyword.directive "%}" @keyword.directive)
41+
(cont_inline "{%" @keyword.directive "%}" @keyword.directive)
42+
43+
(ifdef) @keyword.directive
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
((cont) @injection.content
2+
(#set! injection.language "javascript"))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
((group) @rainbow.scope)
2+
3+
["(" ")"] @rainbow.bracket

0 commit comments

Comments
 (0)