1
0
mirror of https://github.com/ilyakooo0/urbit.git synced 2024-12-27 00:44:27 +03:00
urbit/extras/hoonSublime/hoon.YAML-tmLanguage

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-10-22 20:14:16 +03:00
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: hoon
scopeName: source.hoon
fileTypes: [hoon, hook]
uuid: 9a56507d-ae34-4bd0-84fa-079029cb9509
patterns:
- comment: comment
name: comment.line.hoon
begin: '::'
end: \n
- comment: doqbloq
name: string.double.hoon
begin: \s*"""
end: \s*"""
- comment: soqbloq
name: string.double.hoon
begin: \s*'''
end: \s*'''
- comment: tape
name: string.double.hoon
begin: \"
patterns: [{match: '\\.|[^"]'}]
2015-10-22 20:14:16 +03:00
end: \"
- comment: cord
name: string.single.hoon
begin: \'
patterns: [{match: "\\\\.|[^']"}]
2015-10-22 20:14:16 +03:00
end: \'
- comment: arm
name: constant.character.hoon
match: "[a-z]([a-z0-9-]*[a-z0-9])?/"
- comment: arm
contentName: entity.name.function.hoon
begin: "\\+[-+] (?=[a-z]([a-z0-9-]*[a-z0-9])?)"
end: "(?![a-z0-9-])"
2015-10-22 20:14:16 +03:00
- comment: cube
name: constant.character.hoon
match: "%[a-z]([a-z0-9-]*[a-z0-9])?"
- comment: odor
name: storage.type.hoon
match: "@[a-z]([a-z0-9-]*[a-z0-9])?"
- comment: rune
name: keyword.control.hoon
match: "[+\\-|$%:.#^~;=?!_,&@\\/<>%*]"
- comment: rune
name: keyword.control.hoon
begin: ';script(type "text/coffeescript")'
end: '=='
...