-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fewest Moves.sublime-syntax
47 lines (42 loc) · 1.39 KB
/
Fewest Moves.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
file_extensions:
- fm
- fmc
scope: source.fm
contexts:
# The prototype context is prepended to all contexts but those setting
# meta_include_prototype: false.
prototype:
- include: comments
main:
# The main context is the initial starting point of our syntax.
# Include other contexts from here (or specify them directly).
- include: keywords
- include: notations
keywords:
# Keywords are if, else for and while.
# Note that blackslashes don't need to be escaped within single quoted
# strings in YAML. When using single quoted strings, only single quotes
# need to be escaped: this is done by using two single quotes next to each
# other.
- match: '\b(?i)niss\b'
scope: keyword.control.fm
# strings:
# - match: '\b([URFDLB]w?[''2]?|[xyz][''2]?)(?=\s|$)'
# scope: constant.other.fm
notations:
- match: '\b([URFDLB]w?[''2]?|[xyz][''2]?)(?=\s|$)'
scope: constant.other.fm
- match: '(\[[rufdlb][''2]?\])(?=\s|$)'
scope: constant.other.fm
comments:
# Comments begin with a '//' or '#' and finish at the end of the line.
- match: '//|#'
scope: punctuation.definition.comment.fm
push:
# This is an anonymous context push for brevity.
- meta_scope: comment.line.double-slash.fm
- match: $\n?
pop: true