mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
ci: allow negative assertions in tests
This commit is contained in:
parent
4f3aa2af44
commit
ab414f8b1c
2 changed files with 13 additions and 1 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start
|
mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start
|
||||||
cd ~/.local/share/nvim/site/pack/plenary.nvim/start
|
cd ~/.local/share/nvim/site/pack/plenary.nvim/start
|
||||||
git clone https://github.com/nvim-lua/plenary.nvim
|
git clone https://github.com/nvim-lua/plenary.nvim
|
||||||
curl -L https://github.com/theHamsta/highlight-assertions/releases/download/v0.1.5/highlight-assertions_v0.1.5_x86_64-unknown-linux-gnu.tar.gz | tar -xz
|
curl -L https://github.com/theHamsta/highlight-assertions/releases/download/v0.1.6/highlight-assertions_v0.1.6_x86_64-unknown-linux-gnu.tar.gz | tar -xz
|
||||||
cp highlight-assertions /usr/local/bin
|
cp highlight-assertions /usr/local/bin
|
||||||
|
|
||||||
- name: Install and prepare Neovim
|
- name: Install and prepare Neovim
|
||||||
|
|
|
||||||
12
tests/query/highlights/rust/super-crate-imports.rs
Normal file
12
tests/query/highlights/rust/super-crate-imports.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
use crate::a;
|
||||||
|
// ^ namespace
|
||||||
|
// ^ !keyword
|
||||||
|
use crate::{b, c};
|
||||||
|
// ^ namespace
|
||||||
|
// ^ !keyword
|
||||||
|
use super::a;
|
||||||
|
// ^ namespace
|
||||||
|
// ^ !keyword
|
||||||
|
use super::{b, c};
|
||||||
|
// ^ namespace
|
||||||
|
// ^ !keyword
|
||||||
Loading…
Add table
Add a link
Reference in a new issue