Skip to content

Commit

Permalink
fixed function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
bafto committed May 19, 2023
1 parent 6e9b6df commit 25e6093
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions syntaxes/ddp.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"patterns": [
{
"name": "keyword.control.ddp",
"match": "\\b(([Ww]enn)|(dann)|([Ss]onst)|(aber)|([Ff](ü|(ue))r)|(jede[n]?)|(in)|([Ss]olange)|([Mm]ache)|(zur(ü|(ue))ck)|([Gg]ib)|([Vv]erlasse die Funktion)|(von)|(vom)|(bis)|(jede)|(jeder)|(Schrittgr(ö|(oe))(ß|(ss))e))|(Mal)|([Ww]iederhole)\\b"
"match": "\\b(([Ww]enn)|(dann)|([Ss]onst)|(aber)|([Ff](ü|(ue))r)|(jede[n]?)|(in)|([Ss]olange)|([Mm]ache)|(zur(ü|(ue))ck)|([Gg]ib)|([Vv]erlasse die Funktion)|(von)|(vom)|(bis)|(jede)|(jeder)|(Schrittgr(ö|(oe))(ß|(ss))e))|(Mal)|([Ww]iederhole)|((ö|(oe))ffentliche)\\b"
},
{
"name": "meta.preprocessor",
"match": "Binde (\"[\\s\\S]*\") ein",
"match": "Binde\\s+(\"[\\s\\S]*\")\\s+ein",
"captures": {
"1": {
"name": "meta.preprocessor.string"
Expand All @@ -53,7 +53,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)|((ö|(oe))ffentlich)\\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)\\b"
}
]
},
Expand Down Expand Up @@ -119,79 +119,88 @@
"patterns": [
{
"name": "meta.function.ddp",
"match": "Die ((ö|(oe))ffentliche)? Funktion ([\\wäöüÄÖÜ]+) gibt (nichts|einen? [\\wäöüÄÖÜ]+) zurück,(\\s*macht:)?",
"match": "Die\\s+((ö|(oe))ffentliche\\s+)?Funktion\\s+([\\wäöüÄÖÜ]+)\\s+gibt\\s+(nichts|einen?\\s+[\\wäöüÄÖÜ]+)\\s+zur(ü|(ue))ck,(\\s*macht:)?",
"captures": {
"0": {
"name": "keyword.other.ddp"
},
"1": {
"name": "keyword.control.ddp"
},
"4": {
"name": "entity.name.function.ddp"
},
"2": {
"7": {
"name": "support.type.ddp"
},
"3": {
"8": {
"name": "keyword.control.ddp"
}
}
},
{
"name": "meta.function.ddp",
"match": "Die Funktion ([\\wäöüÄÖÜ]+) mit dem Parameter ([\\wäöüÄÖÜ]+) vom Typ ([\\w\\säöüÄÖÜ]+),\\s*gibt (nichts|einen? [\\w\\säöüÄÖÜ]+) zurück,(\\s*macht:)?",
"match": "Die\\s+((ö|(oe))ffentliche\\s+)?Funktion\\s+([\\wäöüÄÖÜ]+)\\s+mit\\s+dem\\s+Parameter\\s+([\\wäöüÄÖÜ]+)\\s+vom\\s+Typ\\s+([\\w\\säöüÄÖÜ]+),\\s*gibt\\s+(nichts|einen?\\s+[\\w\\säöüÄÖÜ]+)\\s+zur(ü|(ue))ck,(\\s*macht:)?",
"captures": {
"0": {
"name": "keyword.other.ddp"
},
"1": {
"name": "keyword.other.ddp"
},
"4": {
"name": "entity.name.function.ddp"
},
"2": {
"5": {
"name": "variable.parameter.ddp"
},
"3": {
"6": {
"name": "support.type.ddp"
},
"4": {
"7": {
"name": "support.type.ddp"
},
"5": {
"10": {
"name": "keyword.control.ddp"
}
}
},
{
"name": "meta.function.ddp",
"match": "Die Funktion ([\\wäöüÄÖÜ]+) mit den Parametern (\\w+(?:,\\s*[\\wäöüÄÖÜ]+)*) und ([\\wäöüÄÖÜ]+) vom Typ ([\\w\\säöüÄÖÜ]+(?:,\\s*[\\w\\säöüÄÖÜ]+)*) und ([\\w\\säöüÄÖÜ]+),\\s*gibt (nichts|einen? [\\w\\säöüÄÖÜ]+) zurück,(\\s*macht:)?",
"match": "Die\\s+((ö|(oe))ffentliche\\s+)?Funktion\\s+([\\wäöüÄÖÜ]+)\\s+mit\\s+den\\s+Parametern\\s+(\\w+(?:,\\s*[\\wäöüÄÖÜ]+)*)\\s+und\\s+([\\wäöüÄÖÜ]+)\\s+vom\\s+Typ\\s+([\\w\\säöüÄÖÜ]+(?:,\\s*[\\w\\säöüÄÖÜ]+)*)\\s+und\\s+([\\w\\säöüÄÖÜ]+),\\s*gibt\\s+(nichts|einen? [\\w\\säöüÄÖÜ]+)\\s+zur(ü|(ue))ck,(\\s*macht:)?",
"captures": {
"0": {
"name": "keyword.other.ddp"
},
"1": {
"name": "keyword.other.ddp"
},
"4": {
"name": "entity.name.function.ddp"
},
"2": {
"5": {
"name": "variable.parameter.ddp"
},
"3": {
"6": {
"name": "variable.parameter.ddp"
},
"4": {
"7": {
"name": "support.type.ddp"
},
"5": {
"8": {
"name": "support.type.ddp"
},
"6": {
"9": {
"name": "support.type.ddp"
},
"7": {
"12": {
"name": "keyword.control.ddp"
}
}
},
{
"name": "keyword.control.ddp",
"match": "ist in (\"[\\s\\S]+\") definiert",
"match": "ist\\s+in\\s+(\"[\\s\\S]+\")\\s+definiert",
"captures": {
"1": {
"name": "meta.preprocessor.string"
Expand All @@ -200,11 +209,11 @@
},
{
"name": "keyword.control.ddp",
"match": "[Uu]nd kann so benutzt werden:"
"match": "[Uu]nd\\s+kann\\s+so\\s+benutzt\\s+werden:"
},
{
"name": "entity.name.function.ddp",
"match": "Der (Alias) (\"[\\s\\S]+\") steht für die Funktion ([\\wäöüÄÖÜ]+)",
"match": "Der\\s+(Alias)\\s+(\"[\\s\\S]+\")\\s+steht\\s+für\\s+die\\s+Funktion\\s+([\\wäöüÄÖÜ]+)",
"captures": {
"1": {
"name": "support.type.ddp"
Expand Down

0 comments on commit 25e6093

Please sign in to comment.