Cypher
Syntax highlighting for the Neo4j Cypher query language for ST3 and above.
Labels language syntax
Details
Installs
- Total 1K
- Win 524
- Mac 797
- Linux 164
| Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| Linux | 1 | 0 | 0 | 0 | 0 | 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 | 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.