Merge branch 'master' of github.com:helix-editor/helix

imgbot
trivernis 2 years ago
commit 6f01208a73
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -459,7 +459,7 @@ source = { git = "https://github.com/cstrahan/tree-sitter-nix", rev = "6b71a810c
name = "ruby" name = "ruby"
scope = "source.ruby" scope = "source.ruby"
injection-regex = "ruby" injection-regex = "ruby"
file-types = ["rb", "rake", "rakefile", "irb", "gemfile", "gemspec", "Rakefile", "Gemfile"] file-types = ["rb", "rake", "rakefile", "irb", "gemfile", "gemspec", "Rakefile", "Gemfile", "rabl", "jbuilder", "jb"]
shebangs = ["ruby"] shebangs = ["ruby"]
roots = [] roots = []
comment-token = "#" comment-token = "#"

@ -2,14 +2,10 @@
; HEEx delimiters ; HEEx delimiters
[ [
"<!" "<!"
"<!--"
"<" "<"
"<%!--"
"<%#" "<%#"
">" ">"
"</" "</"
"--%>"
"-->"
"/>" "/>"
; These could be `@keyword`s but the closing `>` wouldn't be highlighted ; These could be `@keyword`s but the closing `>` wouldn't be highlighted
; as `@keyword` ; as `@keyword`
@ -34,7 +30,13 @@
(doctype) @constant (doctype) @constant
; HEEx comments are highlighted as such ; HEEx comments are highlighted as such
(comment) @comment [
"<!--"
"-->"
"<%!--"
"--%>"
(comment)
] @comment
; HEEx tags are highlighted as HTML ; HEEx tags are highlighted as HTML
(tag_name) @tag (tag_name) @tag

@ -19,3 +19,6 @@
; <link href={ Routes.static_path(..) } /> ; <link href={ Routes.static_path(..) } />
((expression (expression_value) @injection.content) ((expression (expression_value) @injection.content)
(#set! injection.language "elixir")) (#set! injection.language "elixir"))
((comment) @injection.content
(#set! injection.language "comment"))

@ -1,3 +1,5 @@
; inherits: javascript
[ [
(element) (element)
(if_statement) (if_statement)

Loading…
Cancel
Save