7 lines
11 KiB
JavaScript
7 lines
11 KiB
JavaScript
|
const lang = Object.freeze({ "displayName": "Beancount", "fileTypes": ["beancount"], "name": "beancount", "patterns": [{ "comment": "Comments", "match": ";.*", "name": "comment.line.beancount" }, { "begin": "^\\s*(poptag|pushtag)\\s+(#)([A-Za-z0-9\\-_/.]+)", "beginCaptures": { "1": { "name": "support.function.beancount" }, "2": { "name": "keyword.operator.tag.beancount" }, "3": { "name": "entity.name.tag.beancount" } }, "comment": "Tag directive", "end": "(?=(^\\s*$|^\\S))", "name": "meta.directive.tag.beancount", "patterns": [{ "include": "#comments" }, { "include": "#illegal" }] }, { "begin": '^\\s*(include)\\s+(\\".*\\")', "beginCaptures": { "1": { "name": "support.function.beancount" }, "2": { "name": "string.quoted.double.beancount" } }, "comment": "Include directive", "end": "(?=(^\\s*$|^\\S))", "name": "meta.directive.include.beancount", "patterns": [{ "include": "#comments" }, { "include": "#illegal" }] }, { "begin": '^\\s*(option)\\s+(\\".*\\")\\s+(\\".*\\")', "beginCaptures": { "1": { "name": "support.function.beancount" }, "2": { "name": "support.variable.beancount" }, "3": { "name": "string.quoted.double.beancount" } }, "comment": "Option directive", "end": "(?=(^\\s*$|^\\S))", "name": "meta.directive.option.beancount", "patterns": [{ "include": "#comments" }, { "include": "#illegal" }] }, { "begin": '^\\s*(plugin)\\s*("(.*?)")\\s*(".*?")?', "beginCaptures": { "1": { "name": "support.function.beancount" }, "2": { "name": "string.quoted.double.beancount" }, "3": { "name": "entity.name.function.beancount" }, "4": { "name": "string.quoted.double.beancount" } }, "comment": "Plugin directive", "end": "(?=(^\\s*$|^\\S))", "name": "keyword.operator.directive.beancount", "patterns": [{ "include": "#comments" }, { "include": "#illegal" }] }, { "begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s+(open|close|pad)\\b", "beginCaptures": { "1": { "name": "constant.numeric.date.year.beancount" }, "2": { "name": "punctuation.separator.beancount" }, "3": { "name": "constant.numeric.date.month.beancount" }, "4": { "name": "punctuation.separator.beancount" }, "5": { "name": "constant.numeric.date.day.beancount" }, "6": { "name": "support.function.beancount" } }, "comment": "Open/Close/Pad directive", "end": "(?=(^\\s*$|^\\S))", "name": "meta.directive.dated.beancount", "patterns": [{ "include": "#comments" }, { "include": "#meta" }, { "include": "#account" }, { "include": "#commodity" }, { "match": "\\,", "name": "punctuation.separator.beancount" }, { "include": "#illegal" }] }, { "begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s+(custom)\\b", "beginCaptures": { "1": { "name": "constant.numeric.date.year.beancount" }, "2": { "name": "punctuation.separator.beancount" }, "3": { "name": "constant.numeric.date.month.beancount" }, "4": { "name": "punctuation.separator.beancount" }, "5": { "name": "constant.numeric.date.day.beancount" }, "6": { "name": "support.function.beancount" } }, "comment": "Custom directive", "end": "(?=(^\\s*$|^\\S))", "name": "meta.directive.dated.beancount", "patterns": [{ "include": "#comments" }, { "include": "#meta" }, { "include": "#string" }, { "include": "#bool" }, { "include": "#amount" }, { "include": "#number" }, { "include": "#date" }, { "include": "#account" }, { "include": "#illegal" }] }, { "begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(event)", "beginCaptures": { "1": { "name": "constant.numeric.date.year.beancount" }, "2": { "name": "punctuation.separator.beancount" }, "3": { "name": "constant.numeric.date.month.beancount" }, "4": { "name": "punctuation.separator.beancount" }, "5": { "name": "constant.numeric.date.day.beancount" }, "6": { "name": "support.function.directive.beancount" } }, "comment": "Event directive", "end": "(?=(^\\s*$|^\\S))", "name": "meta.directive.dated.beancount", "patterns": [{ "include": "#comments" }, { "include": "#meta" }, { "include": "#string" }, { "include": "#illegal" }] }, { "begin": "([0-9]{4})([\\-|/])([0-9]{2})([\\-|/])([0-9]{2})\\s(commodity)", "beginCaptures": { "1": { "name": "constant.numeric.date.year.beancount" }
|
||
|
var beancount = [
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { beancount as default };
|