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 532
  • Mac 802
  • Linux 165
Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 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
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 1 0
Mac 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 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 1 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.