{ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", "name": "PDDL Plan", "patterns": [ { "include": "#action" }, { "include": "#meta" }, { "include": "#comments" }, { "include": "#scalars" }, { "include": "#unexpected" } ], "repository": { "action": { "patterns": [{ "name": "variable.action", "match": "^\\s*((\\d+|\\d+\\.\\d+|\\.\\d+)\\s*:)?\\s*\\(([\\w -]+)\\)\\s*(\\[\\s*(\\d+|\\d+\\.\\d+|\\.\\d+)\\s*\\])?\\s*", "captures": { "2": { "name": "constant.numeric.action.time" }, "3": { "name": "support.function.action.name"}, "5": { "name": "constant.numeric.action.duration"} } }] }, "meta": { "patterns": [{ "name": "meta.preprocessor.reference", "match": "^;;\\s*!(domain|problem):\\s*([\\w-]+)\\s*$", "captures": { "1": { "name": "variable.parameter.pre-parsing.type"}, "3": { "name": "variable.parameter.pre-parsing.command"} } }, { "name": "meta.preprocessor", "match": "^;;\\s*!" }] }, "comments": { "patterns": [{ "name": "comment.line", "match": ";.*$" }] }, "scalars": { "patterns": [{ "name": "constant.numeric", "match": "\\b[-+]?([0-9]*\\.[0-9]+|[0-9]+)\\b" }] }, "unexpected": { "patterns": [{ "name": "invalid.illegal", "match": ":[\\w-]+\\b" }, { "name": "invalid.illegal", "match": "\\?" }, { "name": "invalid.illegal", "match": ".*" }] } }, "scopeName": "source.pddl.plan" }