You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-core/src
Timothy DeHerrera 9c6c63a2be
inject language based on file extension & shebang (#3970)
* inject language based on file extension

Nodes can now be captured with "injection.filename". If this capture
contains a valid file extension known to Helix, then the content will
be highlighted as that language.

* inject language by shebang

Nodes can now be captured with "injection.shebang". If this capture
contains a valid shebang line known to Helix, then the content will
be highlighted as the language the shebang calls for.

* add documentation for language injection

* nix: fix highlights

The `@` is now highlighted properly on either side of the function arg.

Also, extending the phases with `buildPhase = prev.buildPhase + ''''`
is now highlighted properly.

Fix highlighting of `''$` style escapes (requires tree-sitter-nix bump)

Fix `inherit` highlighting.

* simplify injection_for_match

Split out injection pair logic into its own method to make the overall
flow easier to follow.

Also transform the top-level function into a method on a
HighlightConfiguration.

* markdown: add shebang injection query
2 years ago
..
doc_formatter Feat: LSP Type Hints (#5934) 2 years ago
increment Fix new clippy lints (#5892) 2 years ago
auto_pairs.rs Fix erroneous indent between closers of auto-pairs (#5330) 2 years ago
chars.rs Temporarily turn on unicode-lines 3 years ago
comment.rs Prevent a panic when uncommenting a line with only a comment token (#5933) 2 years ago
config.rs Add support for local language configuration (#1249) 3 years ago
diagnostic.rs Feat: LSP Type Hints (#5934) 2 years ago
diff.rs delete outdated reference to cessen/ropey#25 (#4928) 2 years ago
doc_formatter.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2 years ago
graphemes.rs rework positioning/rendering and enable softwrap/virtual text (#5420) 2 years ago
history.rs Fix transaction composition order in History::changes_since (#4981) 2 years ago
indent.rs Fix indentation level calculation for lines mixing tabs and spaces (#6278) 2 years ago
lib.rs add workspace config and manual LSP root management 2 years ago
line_ending.rs properly handle LSP position encoding (#5711) 2 years ago
macros.rs Split parts of helix-term into helix-view. 4 years ago
match_brackets.rs Fix match brackets comment (#1346) 3 years ago
movement.rs return early if soft wrap is invalid (#6856) 2 years ago
object.rs Fix edge-case in tree-sitter expand_selection selection command (#2877) 2 years ago
path.rs Canonicalize paths before stripping current dir as prefix (#6290) 2 years ago
position.rs Fix typos (#6643) 2 years ago
register.rs feat(commands): add clear-register typable command (#5695) 2 years ago
search.rs Jump to the next number on the line before incrementing (#1778) 3 years ago
selection.rs Fix typos (#6643) 2 years ago
shellwords.rs Fix typos (#6643) 2 years ago
surround.rs Add test cases for existing pair matching logic. (#6027) 2 years ago
syntax.rs inject language based on file extension & shebang (#3970) 2 years ago
test.rs fix test::plain 2 years ago
text_annotations.rs Fix typos (#6643) 2 years ago
textobject.rs fix test::plain 2 years ago
transaction.rs Add API to create a Transaction from potentially overlapping changes 2 years ago
wrap.rs Softwrapping improvements (#5893) 2 years ago