-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Octave.sublime-syntax
39 lines (34 loc) · 1.07 KB
/
Octave.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
%YAML 1.2
---
name: OCTAVE
file_extensions:
- octave
scope: source.octave
contexts:
main:
- match: ''
push: Packages/Matlab/Matlab.sublime-syntax
with_prototype:
- match: '[#%]{\s*\n'
scope: comment.line.octave
push:
- meta_scope: comment.line.octave
- match: '[#%]}\s*\n'
scope: comment.line.octave
pop: true
- match: '#.*\n'
scope: comment.line.percentage.octave
- match: '"'
scope: punctuation.definition.string.begin.octave
push:
- meta_scope: string.quoted.double.octave
- match: '(")|(?<=^|[^\\])\s*(\n)'
captures:
1: punctuation.definition.string.end.octave
2: invalid.illegal.unexpected-end-of-line.octave
pop: true
- match: '#.*\n'
scope: comment.line.percentage.octave
- match: (?<!\.)\b(end(for|if|while|switch|function))\b
comment: Control keywords
scope: keyword.control.octave