Skip to content

Commit

Permalink
feat: add grammar for type statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmfernandes committed Apr 24, 2024
1 parent cf857fe commit e715c6c
Show file tree
Hide file tree
Showing 10 changed files with 6,829 additions and 14,200 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tree-sitter grammar for SELinux

## Set in Neovim
## Set in Neovim for local development

### Install

Expand Down Expand Up @@ -28,9 +28,22 @@ parsers](https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#a

### Highlights

The queries must be added to the Neovim runtime directory:
The queries must be added to the nvim-treesitter runtime directory:

```bash
cd ~/.local/share/nvim/lazy/nvim-treesitter/queries
ln -s ~/src/tree-sitter-selinux/queries ./selinux
```

### Text objects

The queries must be added to the nvim-treesitter-textobjects runtime directory:

```bash
cd ~/.local/share/nvim/lazy/nvim-treesitter-textobjects/queries
ln -s ~/src/tree-sitter-selinux/queries ./selinux
```

## References

- [The SELinux Notebook](https://github.com/SELinuxProject/selinux-notebook)
Loading

0 comments on commit e715c6c

Please sign in to comment.