Cypher
Syntax highlighting for the Neo4j Cypher query language for ST3 and above.
Labels language syntax
Details
Installs
- Total 1K
- Win 529
- Mac 801
- Linux 165
| Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Cypher
Syntax highlighting for the Neo4j Cypher query language in Sublime Text 3 and 4.
This is a modern, minimal .sublime-syntax definition. It replaces the long-unmaintained Sublime Text 2 plugin.
Features
- Highlights clauses (
MATCH,MERGE,RETURN,WITH,UNWIND,CALL/YIELD,FOREACH,LOAD CSV, schema commands, etc), word operators (AND,OR,STARTS WITH,IS NULL, etc), andCASE/WHEN/THEN/ELSE/END. - Built-in functions (
count,collect,coalesce,toInteger,point,date, etc) highlighted only when actually called, so a variable namedsizeortypestays plain. - Namespaced procedure and function calls (
apoc.*,gds.*,db.*) highlighted via a pattern, so no stale hardcoded procedure list to maintain. - Node labels and relationship types (
:Person,:KNOWS), property access (n.name), and parameters ($param,$0). - String literals (single, double, and backtick-escaped identifiers) with escape sequences, and numeric literals (integers, floats, scientific notation, hex
0x, octal0o,Inf/NaN). - Line (
//) and block (/* */) comments.
Colors come entirely from standard TextMate scope names, so the package works with any color scheme.
Installation
Package Control (recommended, once published)
- Open the command palette (Ctrl/Cmd+Shift+P).
- Run Package Control: Install Package.
- Search for Cypher and install it.
Manual
- Run Preferences > Browse Packages in Sublime Text.
- Copy this repository's files into the
Packages > Userdirectory.
Usage
Files with a .cypher or .cyp extension are detected automatically. For any other file, choose View > Syntax > Cypher. To always open a given extension as Cypher, open such a file and choose View > Syntax > Open all with current extension as… > Cypher.
License
MIT: see LICENSE.