aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/syntax.rs
Commit message (Collapse)AuthorAge
...
| * Store theme scopes on the loader, this way theme isn't passed aroundBlaž Hrastnik2022-01-23
| |
| * syntax: Split parsing and highlightingBlaž Hrastnik2022-01-23
| |
| * Use the correct language ID for JavaScript & TypeScript (#1466)Kevin Sjöberg2022-01-15
| | | | | | | | | | | | | | * Use correct language ID for JavaScript/TypeScript * Add missing slash * Only calculate fallback when needed
| * Add llvm-mir highlighting (#1398)Sebastian Neubauer2022-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add injection regex for more languages To support embedding them in other languages like markdown. * Add llvm-mir highlighting LLVM Machine IR is dumped as yaml files that can embed LLVM IR and Machine IR. To support this, add a llvm-mir-yaml language that uses the yaml parser, but uses different injections to highlight IR and MIR. * Update submodule with fixed multiline comments Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
| * feat(lsp): configurable diagnostic severity (#1325)Matouš Dzivjak2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(lsp): configurable diagnostic severity Allow severity of diagnostic messages to be configured. E.g. allow turning of Hint level diagnostics. Fixes: https://github.com/helix-editor/helix/issues/1007 * Use language_config() method * Add documentation for diagnostic_severity * Use unreachable for unknown severity level * fix: documentation for diagnostic_severity config
| * Use same name used in config files for langs in docsGokul Soumya2021-12-08
| |
| * Auto generate docs for language supportGokul Soumya2021-12-08
| |
| * Support env flags in shebang (#1224)ath32021-12-03
| |
* | dap: Start working on runInTerminal supportBlaž Hrastnik2021-12-03
| |
* | Merge remote-tracking branch 'origin/master' into debugBlaž Hrastnik2021-11-21
|\|
| * Use default `languages.toml` if user's is invalid (#994)Omnikar2021-11-09
| |
| * Make shebangs optional, they don't make sense outside of scriptsBlaž Hrastnik2021-11-09
| |
| * Refactor shebang detection to reuse the loaded bufferBlaž Hrastnik2021-11-08
| |
| * Detect filetype from shebang line (#1001)ath32021-11-08
| |
* | Merge branch 'master' into debugBlaž Hrastnik2021-11-06
|\|
| * Remove three transmutes from helix-core syntax.rs (#923)Gygaxis Vainhardt2021-10-28
| |
| * log syntax highlighting init errors (#895)Kirawi2021-10-23
| |
| * Add treesitter textobjects (#728)Gokul Soumya2021-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add treesitter textobject queries Only for Go, Python and Rust for now. * Add tree-sitter textobjects Only has functions and class objects as of now. * Fix tests * Add docs for tree-sitter textobjects * Add guide for creating new textobject queries * Add parameter textobject Only parameter.inside is implemented now, parameter.around will probably require custom predicates akin to nvim' `make-range` since we want to select a trailing comma too (a comma will be an anonymous node and matching against them doesn't work similar to named nodes) * Simplify TextObject cell init
| * clean up combined-injections comment (#880)Michael Davis2021-10-19
| |
* | dap: support arrays as argumentsDmitry Sharshakov2021-10-24
| |
* | Invert core -> dap dependencyBlaž Hrastnik2021-10-17
| |
* | Merge branch 'master' into debugBlaž Hrastnik2021-10-17
|\|
| * Allow `language.config` (in languages.toml) to be passed in as a toml object ↵Midnight Exigent2021-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | (#807) * allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master
* | editor: add Node.js debuggerDmitry Sharshakov2021-09-26
| |
* | Merge branch 'master' into debugDmitry Sharshakov2021-09-25
|\|
| * ...Blaž Hrastnik2021-09-16
| |
| * syntax: Properly handle injection-regex for language injectionsBlaž Hrastnik2021-09-16
| |
| * fix: Need to reset set_byte_range in case cursor_ref is reused.Blaž Hrastnik2021-09-13
| |
| * syntax: Add go & rust locals, improve tree-sitter error messageBlaž Hrastnik2021-09-06
| |
| * Update tree-sitter to 0.20Blaž Hrastnik2021-09-06
| | | | | | | | | | 0.20 includes querying improvements, we no longer have to convert fragments to strings but can return an iterator of chunks instead.
* | lldb: use stdio transport by defaultDmitry Sharshakov2021-09-06
| |
* | Defaults in completions, better schemaDmitry Sharshakov2021-08-29
| |
* | Merge remote-tracking branch 'origin/master' into debugDmitry Sharshakov2021-08-28
|\|
| * Reduce State use a bit furtherBlaž Hrastnik2021-08-26
| | | | | | | | This is a legacy type that should be fully removed.
* | Create new debugger config formatDmitry Sharshakov2021-08-24
| |
* | config: minor fixesDmitry Sharshakov2021-08-23
| |
* | editor: add debug session configDmitry Sharshakov2021-08-23
| |
* | Add debug-adapter field to languages.tomlDmitry Sharshakov2021-08-23
|/
* fix: tree sitter rendering glitches with multiple selection editsBlaž Hrastnik2021-08-13
|
* Remove embed_runtime featureBlaž Hrastnik2021-07-30
| | | | It's no longer practical to maintain. Closes #451
* Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-24
|\
| * The item `fmt` was imported redundantlyfossdd2021-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed warning: ``` warning: the item `fmt` is imported redundantly --> helix-core/src/syntax.rs:98:9 | 16 | fmt, | --- the item `fmt` is already imported here ... 98 | use std::fmt; | ^^^^^^^^ | ```
* | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-19
|\|
| * Made toggle_comments language dependent (#463)Cor Peters2021-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | * Made toggle_comments language dependent * Fixed Test Cases * Added clippy suggestion * Small Fixes * Clippy Suggestion Co-authored-by: Cor <prive@corpeters.nl>
| * Added option to provide a custom config file to the lsp. (#460)Cor Peters2021-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added option to provide a custom config file to the lsp. * Simplified lsp loading routine with anyhow * Moved config to language.toml * Fixed test case * Cargo fmt * Revert now-useless changes * Renamed custom_config to config Co-authored-by: Cor <prive@corpeters.nl>
* | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-17
|\|
| * Dynamically load grammar libraries at runtimeBlaž Hrastnik2021-07-14
| |
| * Rewritten Rust `highlights.scm` (#425)Kirawi2021-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rewrote Rust highlights.scm * wip * wip * wip * wip * fixed type highlighting * wip * rewrite again * moved operators * missing newline * missing newline * update book * fix constructor highlighting * fix constructor highlighting * fix const highlighting * better constructor highlighting * remove dup, bug was my locals.scm file * fixed docs * merge * fixed for highlighting * add yield * remove yield * added yield back * fixed yield highlighting * unecessary
* | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-06
|\|
| * Add missing importPerry Thompson2021-07-02
| |