diff --git a/micro/btldr.yaml b/micro/btldr.yaml new file mode 100644 index 0000000..a56bb6c --- /dev/null +++ b/micro/btldr.yaml @@ -0,0 +1,31 @@ +filetype: btldr +detect: + filename: \\.btldr$ + header: "^# " + +rules: + - comment.line: + start: "^# " + end: $ + rules: + - identifier.callable: "[a-zA-Z]+" + + - comment.line: + start: "^> " + end: $ + rules: + - type.keyword: "\\b(Aliases|See also|More information)\\b" + - constant.string.url: "\\bhttps://.+\\b" + + - comment.line: + start: "^- " + end: $ + rules: + - identifier.builtin: "\\bstd(in|out|err)\\b" + + - statement: + start: "^`" + end: "`$" + rules: + - type.keyword: "\\b(bool|int|float|char|string|command|file|directory|path)\\b" +