Skip to content

Commit

Permalink
syntaxhighlighting for structs
Browse files Browse the repository at this point in the history
  • Loading branch information
bafto committed Nov 13, 2023
1 parent a87f171 commit 0c855c9
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion syntaxes/ddp.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},
{
"name": "keyword.other.ddp",
"match": "\\b([Dd]er)|([Dd]ie)|([Dd]as)|(de[mn])|(ist)|(an)|(Stelle)|([Ss]peichere das Ergebnis von)|([Ss]peichere)|(einer)|(eine)|(leere[n]?)|(Liste)|(aus)|(besteht)|(Funktion)|(mit)|(Parameter[n]?)|(Typ)\\b"
"match": "\\b([Dd]er)|([Dd]ie)|([Dd]as)|(de[mn])|(ist)|(an)|(Stelle)|([Ss]peichere das Ergebnis von)|([Ss]peichere)|(einer)|(eine)|(leere[n]?)|(Liste)|(aus)|(besteht)|(Funktion)|(mit)|(Parameter[n]?)|(Typ)|(Standardwert)\\b"
}
]
},
Expand Down Expand Up @@ -273,6 +273,29 @@
"name": "variable.name.ddp"
}
}
},
{
"name": "keyword.struct.ddp",
"match": "Wir nennen die Kombination aus"
},
{
"name": "keyword.control.alias.ddp",
"match": "(,?[Uu]nd\\s+erstellen\\s+sie\\s+so)"
},
{
"begin": "(?<=so):",
"end": "\"\n",
"name": "meta.preprocessor.string.ddp",
"patterns": [
{
"match": "<[\\wäöüÄÖÜ]+>",
"name": "variable.parameter.alias.ddp"
},
{
"match": "oder|,",
"name": "keyword.other.alias.ddp"
}
]
}
]
}
Expand Down

0 comments on commit 0c855c9

Please sign in to comment.