Commit d6935cf2 authored by Mathilde Regnault's avatar Mathilde Regnault
Browse files

Corrections

parent bd327f3e
......@@ -14,18 +14,12 @@
{
"include": "#@var"
},
{
"include": "#keywords"
},
{
"include": "#strings"
},
{
"include": "#comments"
},
{
"include": "#literal"
},
{
"include": "#operators"
},
......@@ -36,10 +30,10 @@
"include": "#classinherits"
},
{
"include": "#classrequires"
"include": "#resources"
},
{
"include": "#classprovides"
"include": "#keywords"
}
],
"repository": {
......@@ -115,7 +109,7 @@
},
"classinherits": {
"patterns": [{
"match": "\\s+(<:)\\s+(\\S+)\\b",
"match": "\\s+(<:)\\s+([a-zA-Z0-9_]+)\\b",
"captures": {
"1": {
"name": "strong.smg"
......@@ -126,28 +120,12 @@
}
}]
},
"classrequires": {
"resources": {
"patterns": [{
"match": "\\s+(-)\\s+(\\S+)\\b",
"match": "\\s+[-+]\\s+([a-zA-Z0-9_]+);",
"captures": {
"1": {
"name": "strong.smg"
},
"2": {
"name": "entity.name.class.smg"
}
}
}]
},
"classprovides": {
"patterns": [{
"match": "\\s+(\\+)\\s+(\\S+)\\b",
"captures": {
"1": {
"name": "strong.smg"
},
"2": {
"name": "entity.name.class.smg"
"name": "entity.name.function.smg"
}
}
}]
......@@ -197,32 +175,6 @@
}
]
},
"literal": {
"name": "literal.smg",
"patterns": [
{
"include": "#boolean-literal"
},
{
"include": "#anchor-literal"
},
{
"include": "#position-literal"
}
]
},
"boolean-literal": {
"match": "(\\bno\\b|\\byes\\b|[+-])",
"name": "constant.language.boolean.smg"
},
"anchor-literal": {
"match": "\\b(top|bot)\\b",
"name": "constant.language.anchor.smg"
},
"position-literal": {
"match": "\\b(ante|post)\\b",
"name": "constant.language.position.smg"
},
"strings": {
"name": "string.quoted.double.smg",
"begin": "\"",
......@@ -262,9 +214,6 @@
},
{
"include": "#operators-guard-begin"
},
{
"include": "#operators-guard-middle"
}
]
},
......@@ -295,14 +244,6 @@
"name": "strong.smg"
}
}
},
"operators-guard-middle": {
"match": "(\\||[^a-zA-Z0-9_]\\([^a-zA-Z0-9_]|[^a-zA-Z0-9_\\]]\\))",
"captures": {
"1": {
"name": "strong.smg"
}
}
}
},
"scopeName": "source.smg"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment