ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Cypher

by Fulguritude ST3

Syntax highlighting for the Neo4j Cypher query language for ST3 and above.

Details

Installs

  • Total 1K
  • Win 519
  • Mac 789
  • Linux 162
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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 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), and CASE/WHEN/THEN/ELSE/END.
  • Built-in functions (count, collect, coalesce, toInteger, point, date, etc) highlighted only when actually called, so a variable named size or type stays 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, octal 0o, 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)

  1. Open the command palette (Ctrl/Cmd+Shift+P).
  2. Run Package Control: Install Package.
  3. Search for Cypher and install it.

Manual

  1. Run Preferences > Browse Packages in Sublime Text.
  2. Copy this repository's files into the Packages > User directory.

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.