Skip to content

Instantly share code, notes, and snippets.

@yunskim
Created February 6, 2015 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunskim/f25bf9c804bacbbdc44b to your computer and use it in GitHub Desktop.
Save yunskim/f25bf9c804bacbbdc44b to your computer and use it in GitHub Desktop.
a simple syntax definition of J programming Language for Sublime Text 3
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: J
scopeName: source.j
fileTypes: [ijs, ijt]
uuid: da3b45a7-ebbd-4ce6-b1b4-8c7121e79238
patterns:
- comment: copular
name: keyword.operator.j
match: =[\.:]
- comment: comment
name: comment.line.j
match: NB\..*
- comment: control
name: keyword.control.j
match: (\bassert\.?)|break\.|continue\.|for\.|do\.|end\.|goto_name\.|label_name\.|if\.|elseif\.|return\.|select\.|case\.|fcase\.|throw\.|try\.|catch\.|while\.|whilst\.|else\.
- comment: foreign
name: support.function.j
match: \d{1,3}!:\d{1,3}
- comment: numeric
name: constant.numeric.j
match: \b_?\d+\b
- comment: string
name: string.quoted.single.j
match: \'\w*[^']*\'
- comment: x y m n u v
name: variable.parameter.j
match: \b(x|y|m|n|u|v)\b
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment