Skip to content

Commit

Permalink
add LDIF support (helix-editor#10330)
Browse files Browse the repository at this point in the history
* feat(lang): add LDIF support

* style: no unnecessary glob

* Update runtime/queries/ldif/highlights.scm

Co-authored-by: Michael Davis <[email protected]>

---------

Co-authored-by: Michael Davis <[email protected]>
  • Loading branch information
2 people authored and Vulpesx committed Jun 7, 2024
1 parent dea12ed commit 4ac12be
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
| kotlin || | | `kotlin-language-server` |
| latex ||| | `texlab` |
| ld || || |
| ldif || | | |
| lean || | | `lean` |
| ledger || | | |
| llvm |||| |
Expand Down
11 changes: 11 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3497,3 +3497,14 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "adl"
source = { git = "https://github.com/adl-lang/tree-sitter-adl", rev = "2787d04beadfbe154d3f2da6e98dc45a1b134bbf" }

[[language]]
name = "ldif"
scope = "source.ldif"
injection-regex = "ldif"
file-types = ["ldif"]
comment-token = "#"

[[grammar]]
name = "ldif"
source = { git = "https://github.com/kepet19/tree-sitter-ldif", rev = "0a917207f65ba3e3acfa9cda16142ee39c4c1aaa" }
19 changes: 19 additions & 0 deletions runtime/queries/ldif/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
(comment) @comment

((distinguishedName
(name
(name_componet
(attributeTypeAndValue
(attributeType) @comment
(string) @type.parameter
)))) @comment)


(dn_spec) @constant
(changerecord) @constant
(mod_spec) @constant

(attributeType) @type.parameter
(change_modify) @string

(value_spec) @keyword

0 comments on commit 4ac12be

Please sign in to comment.