Commit graph

1936 commits

Author SHA1 Message Date
dkirchhof
f238e6f977 don't treat *.fs as glsl files as it collides with fsharp 2021-11-30 18:53:43 +01:00
GitHub
678a785791 Update lockfile.json 2021-11-28 15:23:47 +01:00
Steve Occhipinti
c6b90ee9bd Handle .attrs() cases
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-28 15:02:55 +01:00
Steve Occhipinti
6240dae0e4 Support both styled.div and styled(Component)
This new injection caters for code like this:

```
const IntroWindow = styled(Window)`
  grid-area: intro;
`
```
2021-11-28 15:02:55 +01:00
Steve Occhipinti
058e050315 Add a basic styled-components injection
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-28 15:02:55 +01:00
Stephan Seitz
b5d05aaac8 yaml(injections): Also add heuristics for Gitlab CI bash 2021-11-28 15:01:34 +01:00
Stephan Seitz
ad615ffc4c injections(yaml): inject bash on key "run" 2021-11-28 15:01:34 +01:00
Stephan Seitz
28cc92a2f6 highlights(bash): highlight "((" "))" 2021-11-28 15:01:24 +01:00
oxalica
6407d54092 fix: off-by-one errors in indent calculation 2021-11-28 14:52:06 +01:00
GitHub
1affb20c0e Update lockfile.json 2021-11-28 01:44:06 +01:00
Stephan Seitz
4b21803fb5 highlights(elm): apply review comments 2021-11-28 00:45:02 +01:00
kiyan
cd987a44f0 feat(elm): add first elm highlight 2021-11-28 00:45:02 +01:00
elianiva
5e388a40bc feat(prisma): add ftdetect 2021-11-28 00:36:24 +01:00
Github Actions
edfafce6f4 [docgen] Update README.md
skip-checks: true
2021-11-28 00:36:24 +01:00
elianiva
e64fe530cd test(prisma): add initial test 2021-11-28 00:36:24 +01:00
elianiva
c5d7aa36e4 fix(prisma): propert @type highlighting 2021-11-28 00:36:24 +01:00
elianiva
2507f890ac refactor(prisma): group similar nodes 2021-11-28 00:36:24 +01:00
elianiva
b2801abc21 refactor(prisma): switch to alternative repo
Co-authored-by: richin13 <richin13@gmail.com>
2021-11-28 00:36:24 +01:00
elianiva
3da2ab9857 feat: add prisma support 2021-11-28 00:36:24 +01:00
patrick96
d2174f1d29 Fix docs 2021-11-28 00:31:02 +01:00
patrick96
e8bde2fe61 Completely remove condition from documentation 2021-11-28 00:31:02 +01:00
patrick96
d24a1c63d4 Make disable accept a function
Replaces the condition setting (though it does the exact inverse)
2021-11-28 00:31:02 +01:00
patrick96
76673d61c3 Rename cond to condition 2021-11-28 00:31:02 +01:00
patrick96
be1c93f848 Add documentation for cond setting
Ref: #1994
2021-11-28 00:31:02 +01:00
maxxnino
50314758ee zig: work around for hang neovim 2021-11-28 00:25:25 +01:00
GitHub
bdb2fe5a0d Update lockfile.json 2021-11-26 22:55:12 +01:00
Github Actions
c25aa3d41a [docgen] Update README.md
skip-checks: true
2021-11-26 22:42:55 +01:00
Stephan Seitz
3fd8bbd3d8 parsers(fusion): add .git suffix necessary for Gitlab projects 2021-11-26 22:42:55 +01:00
GitHub
2d723dedca Update lockfile.json 2021-11-26 22:42:55 +01:00
Stephan Seitz
61b21254ee parsers(fusion): add info about main branch 2021-11-26 22:04:59 +01:00
Jirgn
096f0e91be fix: incorrect hightlight groups 2021-11-26 22:04:59 +01:00
Jirgn
85bc7431e8 fix: listing of grammar support 2021-11-26 22:04:59 +01:00
Jirgn
a0ad73493e fix: typo in highlight group punct(u)ation 2021-11-26 22:04:59 +01:00
Jirgn
49f0ef8e54 fix: revert autogenerated lockfile for non fusion
This reverts commit 78b194f66c.
2021-11-26 22:04:59 +01:00
Jirgn
a14e48ea8a fix: mark support experimental 2021-11-26 22:04:59 +01:00
Jirgn
26cf867238 fix: autogenerated lockfile 2021-11-26 22:04:59 +01:00
Jirgn
13df8ee651 fix: autogenerated README 2021-11-26 22:04:59 +01:00
Jirgn
979c32493d feat: add fusion grammar and highlights 2021-11-26 22:04:59 +01:00
Sergio Alejandro Vargas
fbbcfa7b6c highlights(rust): organize keywords and literals
- 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-25 23:53:41 +01:00
Sergio Alejandro Vargas
81f75a54ff highlights(rust): update operators
- 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-25 23:53:41 +01:00
Stephan Seitz
08243017f2 Rename queries: godotResource -> godot_resource 2021-11-25 23:02:57 +01:00
GitHub
531cb21d21 Update lockfile.json 2021-11-25 23:02:57 +01:00
Stephan Seitz
b2af0d3df4 parsers: godotResource -> godot_resource
Follows upstream renaming
2021-11-25 22:29:42 +01:00
GitHub
a735307abf Update lockfile.json 2021-11-25 22:29:42 +01:00
numToStr
bbbb2f1f32 chore: add test for ecma private fields & methods 2021-11-25 15:42:24 +01:00
numToStr
801c7f0b48 ecma: highlight private properties and methods 2021-11-25 15:42:24 +01:00
Greg Werbin
1f68918e09 Don't use the Bash grammar for Zsh files
Zsh and Bash are not interchangeable.

See <https://github.com/nvim-treesitter/nvim-treesitter/issues/655#issuecomment-978036615>
2021-11-24 18:09:49 +01:00
Stephan Seitz
b004d74bb5 Add assert that "highlight-assertions" is executable 2021-11-24 17:29:55 +01:00
Stephan Seitz
771abaf531 ci: Add workflow for tests 2021-11-24 17:29:55 +01:00
Stephan Seitz
c7634f16de Mark failing indent tests to add them to CI
Expected failures should be monitored so that we don't have regressions
and also remove failure marks when they are resolved.
2021-11-24 17:29:55 +01:00