https://github.com/jtojnar/sublime-smpl-syntax
SmPL (Coccinelle) Syntax for Sublime Text
https://github.com/jtojnar/sublime-smpl-syntax
coccinelle sublime-syntax sublime-text sublime-text-syntax syntax-highlighting
Last synced: 4 months ago
JSON representation
SmPL (Coccinelle) Syntax for Sublime Text
- Host: GitHub
- URL: https://github.com/jtojnar/sublime-smpl-syntax
- Owner: jtojnar
- License: isc
- Created: 2024-06-22T20:53:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T18:48:37.000Z (almost 2 years ago)
- Last Synced: 2025-10-06T04:38:48.918Z (9 months ago)
- Topics: coccinelle, sublime-syntax, sublime-text, sublime-text-syntax, syntax-highlighting
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SmPL Syntax for Sublime Text
This is syntax definition for SmPL (semantic patch) language used by the [Coccinelle] tool.
I [converted] it from [John Gardner]’s [Atom syntax].
## Installation
You can install this package using [Package Control](https://packagecontrol.io/installation) using the name “SmPL (Coccinelle)”.
For development, you will want to clone the repository into “SmPL (Coccinelle)” directory in the Sublime Text’s `Packages` directory (`Preferences` → `Browse Packages…`):
```
git clone git@github.com:jtojnar/Sublime-SmPL-Syntax.git 'SmPL (Coccinelle)'
```
(Or create a symlink with such name from your projects directory.)
## Usage
After installation, the syntax should automatically apply to files with `.cocci` extension.
## Useful links
- [Grammar](https://coccinelle.gitlabpages.inria.fr/website/docs/main_grammar.html)
- [Testing](https://www.sublimetext.com/docs/syntax.html#testing)
[Coccinelle]: https://coccinelle.gitlabpages.inria.fr/website/
[converted]: https://forum.sublimetext.com/t/using-syntax-highlighting-from-github-atom/65023
[Atom syntax]: https://github.com/Alhadis/language-etc/blob/669f7b1ca0d1a37bf63754b9df7c53bd89ba4fd9/grammars/smpl.cson
[John Gardner]: https://github.com/Alhadis