summaryrefslogtreecommitdiff
path: root/queries
AgeCommit message (Collapse)Author
2021-12-14highlights(bash): add `[[` `]]`lucy
2021-12-14highlights(bash): add process substitutionlucy
2021-12-14parsers: Add MDeiml/tree-sitter-markdown as markdown parserStephan Seitz
Fixes #872
2021-12-14feat(lang): add makeLewis Russell
2021-12-14injections(rust): inject regex into `Regex::new`Stephan Seitz
2021-12-13highlights(lua): `next` as builtin functionnumToStr
2021-12-12highlights(ecma): highlight escape_sequenceStephan Seitz
2021-12-06feat(fusion): update testsJirgn
2021-12-06rust(highlights): fix highlighting of char_literalStephan Seitz
2021-12-02OCaml string format specifiersDawid Zych
For format specifiers use @string.special instead of @punctuation.special.
2021-12-01OCaml use @constant.builtin for built in constantssilenc3r
2021-11-30Fix pug injectionStephan Seitz
2021-11-30Feat: Added Pug parser with inital queriesStefan Wienert
2021-11-28Handle .attrs() casesSteve Occhipinti
Now that there are 4 cases handled, I thought it probably needs some comments to show which case each injection is for. There are other unsupported cases, such as `.withConfig` but I'm not sure if they all belong here or into their own plugin or something. The API reference is available here: https://styled-components.com/docs/api Also, not sure if there is a more generic way of handling all these cases at once, a rule that would read: "any template string descendant from 'styled'". Will attempt to open a PR and get some advice.
2021-11-28Support both styled.div and styled(Component)Steve Occhipinti
This new injection caters for code like this: ``` const IntroWindow = styled(Window)` grid-area: intro; ` ```
2021-11-28Add a basic styled-components injectionSteve Occhipinti
I've never written this sort of code before but I was able to get this to work with the help of copy and paste and using nvim-treesitter/playground. I had a hard time trying to understand how to indent this style of code so I let vim do it with `=` and 2 spaces seems to match other files I looked at. This works for a basic example, like this: ``` const Layout = styled.div` position: absolute; inset: 0; display: grid; grid-template-rows: 100px 1fr 3rem; ` ```
2021-11-28yaml(injections): Also add heuristics for Gitlab CI bashStephan Seitz
2021-11-28injections(yaml): inject bash on key "run"Stephan Seitz
2021-11-28highlights(bash): highlight "((" "))"Stephan Seitz
2021-11-28highlights(elm): apply review commentsStephan Seitz
2021-11-28feat(elm): add first elm highlightkiyan
2021-11-28feat(prisma): add ftdetectelianiva
2021-11-28fix(prisma): propert @type highlightingelianiva
2021-11-28refactor(prisma): group similar nodeselianiva
2021-11-28refactor(prisma): switch to alternative repoelianiva
Co-authored-by: richin13 <richin13@gmail.com>
2021-11-28feat: add prisma supportelianiva
2021-11-28zig: work around for hang neovimmaxxnino
2021-11-26parsers(fusion): add info about main branchStephan Seitz
2021-11-26fix: incorrect hightlight groupsJirgn
2021-11-26fix: typo in highlight group punct(u)ationJirgn
2021-11-26feat: add fusion grammar and highlightsJirgn
2021-11-25highlights(rust): organize keywords and literalsSergio Alejandro Vargas
- sort keywords - highlight super as a namespace (same as crate) - highlight `break` and `continue` as `repeat` keywords - don't highlight `macro_rules!` as a keyword - place all literal queries together - place function definition queries alongside function call queries
2021-11-25highlights(rust): update operatorsSergio Alejandro Vargas
- sort operators - remove duplicated `*` - add missing `<<=` - highlight `as` correctly in path aliasing - highlight leading quote `'` as part of a label (not an operator) - highlight never type `!` as a type - sort and format punctuation
2021-11-25Rename queries: godotResource -> godot_resourceStephan Seitz
2021-11-25ecma: highlight private properties and methodsnumToStr
2021-11-23zig: highlight zig format, type and functionmaxxnino
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-11-18r add new highlightsaspeddro
2021-11-16Add basic vimscript injection in `vim.cmd`/`nvim_command`/`nvim_exec` (#1922)vhyrro
2021-11-14C: fix preproc parametersSantos Gallegos
This was capturing too much, we only want to highlight the identifier. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1999
2021-11-12r add new highlightsaspeddro
2021-11-12injections(http): add comment injectionStephan Seitz
2021-11-12refactor: inherit jsongegoune
2021-11-12fix: address change requestsgegoune
2021-11-12feat: add http parsergegoune
All credit goes to @NTBBloodbath. See: https://github.com/NTBBloodbath/rest.nvim/issues/75#issuecomment-960447966 Co-authored-by: NTBBloodbath <bloodbathalchemist@protonmail.com>
2021-11-12Python: highlight semicolonSantos Gallegos
2021-11-12fix: use more specific identifier checkŁukasz Niemier
2021-11-12fix: make comment doc highlighting work for any doc tagŁukasz Niemier
2021-11-12fix: Elixir non-doc sigils will no longer be flickeringŁukasz Niemier
It also adds support for colouring documentation metadata attributes (ex. `@doc foo: :bar`).
2021-11-12r: add new operatoraspeddro