This website requires JavaScript.
Explore
Help
Register
Sign In
suimeng
/
helix
mirror of
https://github.com/helix-editor/helix
Watch
1
Star
0
Fork
You've already forked helix
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
inlay-hints-on-event-system
helix
/
runtime
/
queries
/
jsx
/
highlights.scm
4 lines
87 B
Scheme
Raw
Permalink
Normal View
History
Unescape
Escape
Refactor queries for ecma based languages (#7207)
2023-07-10 00:35:32 +08:00
; See runtime/queries/ecma/README.md for more info.
separate JSX queries from javascript (#1921) It looks like a24fb17b2a978d3165bd6304e9edd69bddb6dd82 (and 855e438f55cb278de8203ac4911561c4c7ad656c) broke the typescript highlights because typescript ; inherits: javascript but it doesn't have those named nodes in its grammar. So instead we can separate out JSX into its own language and copy over everything from javascript and supplement it with the new JSX highlights. Luckily there isn't too much duplication, just the language configuration parts - we can re-use the parser with the languages.toml `grammar` key and most of the queries with `inherits`.
2022-04-02 09:07:35 +08:00
Reverse highlight precedence ordering (#9458) Co-authored-by: postsolar <120750161+postsolar@users.noreply.github.com> Co-authored-by: Iorvethe <58810330+Iorvethe@users.noreply.github.com> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: gabydd <gabydinnerdavid@gmail.com>
2025-02-03 08:17:10 +08:00
; inherits: ecma,_javascript,_jsx