Questions Columns Rows
GitHub icon

Sublime Syntax

Sublime Syntax - Grammar language

< >

Sublime Syntax is a grammar language created in 2008.

#1928on PLDB 15Years Old

Sublime Syntax files are YAML files with a small header, followed by a list of contexts. Each context has a list of patterns that describe how to highlight text in that context, and how to change the current text.

Example from the web:
%YAML 1.2 --- name: C file_extensions: [c, h] scope: source.c contexts: main: - match: \b(if|else|for|while)\b scope: keyword.control.c

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Stats Sponsor Traffic Traffic Today Day 268 Logout