urbit/extras/hoonSublime/hoon.YAML-tmLanguage
benjamin-tlon 3c3f7e761e
Misc cleanup blocking CC-Release. (#1249)
* Move extraneous stuff out of pkg/urbit/*
* s/urb/herb/g
* Removed some boilerplate for `urbit` builds.
* Build urbit tests and run them in the nix build.
2019-04-24 17:27:27 -07:00

52 lines
1.1 KiB
YAML

# [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: '\\.|[^"]'}]
end: \"
- comment: cord
name: string.single.hoon
begin: \'
patterns: [{match: "\\\\.|[^']"}]
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-])"
- 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: '=='
...