Compare commits

...

2 Commits

2 changed files with 21 additions and 1 deletions

View File

@ -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
View 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):?"