Compare commits
2 Commits
892a2f2554
...
fbb68e6ff7
| Author | SHA1 | Date | |
|---|---|---|---|
| fbb68e6ff7 | |||
| 4ae7f4681e |
@ -55,7 +55,7 @@ func main() {
|
||||
}
|
||||
_, err = generator.Generate(protocol)
|
||||
handleErr(command, 1, err)
|
||||
command.Println(output, "OK")
|
||||
command.Println(destination, "OK")
|
||||
}
|
||||
|
||||
func handleErr(command *cli.Cli, code int, err error) {
|
||||
|
||||
20
pdl.yaml
Normal file
20
pdl.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
filetype: pdl
|
||||
|
||||
detect:
|
||||
filename: "\\.pdl$"
|
||||
|
||||
rules:
|
||||
- preproc: "\\bM[0-9a-fA-F]{4}\\b"
|
||||
|
||||
- type: "\\b((U|I)(5|8|16|32|64|128|256)|F(16|32|64|128|256)|Bool|String|Buffer|Table|Any)\\b"
|
||||
|
||||
- symbol.brackets: "(\\{|\\}|\\[\\])"
|
||||
- symbol.operator: "\\?"
|
||||
|
||||
- constant.number: "\\b[0-9a-fA-F]{4}\\b"
|
||||
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME|BUG):?"
|
||||
Loading…
x
Reference in New Issue
Block a user