aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_gabc.lua
blob: c07307b40c4fb1f714add246f497f38f500e3fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- mod-version:3
local syntax = require "core.syntax"

syntax.add {
  name = "GABC",
  files = { "%.gabc$" },
  comment = "%%",
  patterns = {
    { pattern = "%%.*",                 type = "comment"  },
    { pattern = "^%w+:",                type = "keyword2" },
    { pattern = "[%*{}]",               type = "operator" },
    { pattern = "<[^>]*>",              type = "function" },
    { pattern = "-?%.?%d+",             type = "number"   },
    { pattern = { "|", "%)" },          type = "keyword2" },
    { pattern = "%([^%)|]*%)?",         type = "keyword"  },
  },
  symbols = {}
}