-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhacs.YAML-tmLanguage
61 lines (57 loc) · 1.66 KB
/
hacs.YAML-tmLanguage
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: HACS
scopeName: source.hacs
fileTypes: ["hx"]
uuid: 11503641-06bd-41df-82cf-eb75f93f5af1
# This file defines how to assign a scope (name) to bits source code via regular expressions.
# Color themes assign colors to scopes.
# To test the right scope is being applied, you can press ctrl+shift+alt+p to see the scope of
# the word under the cursor. To see common scope names, visit http://manual.macromates.com/en/language_grammars.html.
patterns:
- match: "(sort|scheme|attribute)"
name: "keyword.control"
- match: "(token|fragment)"
name: "keyword.operator"
- match: "\\|"
name: "storage.type"
- match: "(@[0-9]+|#[A-Za-z0-9]+)"
name: "constant.language"
# Begin/End patterns match everything between the begin and end regexes.
# But, you can define recursive subpatterns to match within them.
- name: "entity.name.function"
begin: ([A-Z][A-Za-z]*\()
end: \)
patterns:
- include: '#hash_symbols'
- include: '#special_characters'
- include: '#strings'
- match: ([A-Z][A-Za-z]*)
name: "variable.parameter"
- include: '#special_characters'
- include: '#strings'
- include: '#hash_symbols'
- name: "comment.block"
begin: "/\\*"
end: "\\*/"
- match: "//.*"
name: "comment.line.double-slash"
repository:
hash_symbols:
match: "(@[0-9]+|#[A-Za-z0-9]*)"
name: "constant.language"
special_characters:
name: "constant.character"
match: "[↑↓→]"
strings:
name: "string"
begin: "⟦"
end: "⟧"
patterns:
- begin: "⟨"
end: "⟩"
name: "variable.parameter"
patterns:
- include: '#hash_symbols'
- include: '#special_characters'
...