parser3 top-level property
Implementation
final parser3 = Mode(
refs: {},
subLanguage: ["xml"],
relevance: 0,
contains: [
Mode(className: "comment", begin: "^#", end: "\$", contains: [
PHRASAL_WORDS_MODE,
Mode(
className: "doctag",
begin: "(?:TODO|FIXME|NOTE|BUG|XXX):",
relevance: 0)
]),
Mode(
className: "comment",
begin: "\\^rem{",
end: "}",
contains: [
Mode(className: "comment", begin: "{", end: "}", contains: [
Mode(self: true),
PHRASAL_WORDS_MODE,
Mode(
className: "doctag",
begin: "(?:TODO|FIXME|NOTE|BUG|XXX):",
relevance: 0)
]),
PHRASAL_WORDS_MODE,
Mode(
className: "doctag",
begin: "(?:TODO|FIXME|NOTE|BUG|XXX):",
relevance: 0)
],
relevance: 10),
Mode(
className: "meta",
begin: "^@(?:BASE|USE|CLASS|OPTIONS)\$",
relevance: 10),
Mode(
className: "title",
begin: "@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)\$"),
Mode(className: "variable", begin: "\\\$\\{?[\\w\\-\\.\\:]+\\}?"),
Mode(className: "keyword", begin: "\\^[\\w\\-\\.\\:]+"),
Mode(className: "number", begin: "\\^#[0-9a-fA-F]+"),
C_NUMBER_MODE
]);