treehouse/static/syntax/haku.json

28 lines
733 B
JSON
Raw Normal View History

2024-07-24 18:20:47 +02:00
{
"patterns": [
{ "regex": ";.*", "is": "comment" },
2024-07-30 23:24:14 +02:00
{ "regex": "\"[^\"]*\"", "is": "string" },
2024-07-24 18:20:47 +02:00
{ "regex": "[0-9]+", "is": "literal" },
{
"regex": "\\((fn)\\s*\\(.*?\\)",
"is": {
"default": "default",
"captures": ["keyword1"]
}
},
{
"regex": "\\(([a-zA-Z0-9+~!@$%^&*=<>+?/.,:\\\\|-]+)",
"is": {
"default": "default",
"captures": ["function"]
}
},
{ "regex": "[a-zA-Z0-9+~!@$%^&*=<>+?/.,:\\\\|-]+", "is": "identifier" }
],
"keywords": {
"def": { "into": "keyword1" },
"if": { "into": "keyword1" }
}
}