Skip to content

Commit c6342bc

Browse files
committed
WIP: OCL Disposition
1 parent 96f6699 commit c6342bc

File tree

1 file changed

+90
-3
lines changed

1 file changed

+90
-3
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,39 @@
4949
{ "include": "#AIData-Class" },
5050
{ "include": "#Animation2D-Class" },
5151
{ "include": "#AudioSettings-Class" },
52-
{ "include": "#GameData-Class" }
52+
{ "include": "#GameData-Class" },
53+
{ "include": "#DrawGroupInfo-Class" }
54+
]
55+
},
56+
"DrawGroupInfo-Class": {
57+
"begin": "(^[ \\t]+)?\\b(DrawGroupInfo)\\b",
58+
"beginCaptures": {
59+
"1": {
60+
"name": "punctuation.whitespace.ini"
61+
},
62+
"2": {
63+
"name": "keyword.control.ini"
64+
}
65+
},
66+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
67+
"endCaptures": {
68+
"1": {
69+
"name": "punctuation.whitespace.ini"
70+
},
71+
"2": {
72+
"name": "keyword.control.ini"
73+
}
74+
},
75+
"patterns": [
76+
{
77+
"include": "#Inline-Comment"
78+
},
79+
{
80+
"include": "#General-Assignment"
81+
},
82+
{
83+
"include": "#Invalid-Assignment"
84+
}
5385
]
5486
},
5587
"GameData-Class": {
@@ -741,7 +773,7 @@
741773
"include": "#Inline-Comment"
742774
},
743775
{
744-
"include": "#OCL-CreateObject-Invalid-Assignment"
776+
"include": "#Disposition-Object-Assignment"
745777
},
746778
{
747779
"include": "#General-Assignment"
@@ -751,6 +783,34 @@
751783
}
752784
]
753785
},
786+
"Disposition-Object-Assignment": {
787+
"begin": "(^[ \\t]+)?\\b(Disposition)[ \\t](=)[ \\t]",
788+
"beginCaptures": {
789+
"1": {
790+
"name": "punctuation.whitespace.ini"
791+
},
792+
"2": {
793+
"name": "variable.name.ini"
794+
},
795+
"3": {
796+
"name": "keyword.operator.assignment.ini"
797+
}
798+
},
799+
"end": "$",
800+
"patterns": [
801+
{
802+
"include": "#Inline-Comment"
803+
},
804+
{
805+
"include": "#Disposition-Object-Assignment-Values"
806+
}
807+
]
808+
809+
},
810+
"Disposition-Object-Assignment-Values": {
811+
"match": "\\b(LIKE_EXISTING|INHERIT_VELOCITY|ON_GROUND_ALIGNED|SEND_IT_FLYING|RANDOM_FORCE)",
812+
"name": "variable.other.constant.ini"
813+
},
754814
"OCL-CreateDebris": {
755815
"begin": "(^[ \\t]+)?([Cc]reateDebris)",
756816
"beginCaptures": {
@@ -775,7 +835,7 @@
775835
"include": "#Inline-Comment"
776836
},
777837
{
778-
"include": "#OCL-CreateDebris-Invalid-Assignment"
838+
"include": "#Disposition-Debris-Assignment"
779839
},
780840
{
781841
"include": "#General-Assignment"
@@ -785,6 +845,33 @@
785845
}
786846
]
787847
},
848+
"Disposition-Debris-Assignment": {
849+
"begin": "(^[ \\t]+)?([Dd]isposition)[ \\t]*(=)[ \\t]*",
850+
"beginCaptures": {
851+
"1": {
852+
"name": "punctuation.whitespace.ini"
853+
},
854+
"2": {
855+
"name": "variable.name.ini"
856+
},
857+
"3": {
858+
"name": "keyword.operator.assignment.ini"
859+
}
860+
},
861+
"end": "$",
862+
"patterns": [
863+
{
864+
"include": "#Inline-Comment"
865+
},
866+
{
867+
"include": "#Disposition-Debris-Assignment-Values"
868+
}
869+
]
870+
},
871+
"Disposition-Debris-Assignment-Values": {
872+
"match": "(RANDOM_FORCE|INHERIT_VELOCITY|SEND_IT_FLYING|FLOATING|SEND_IT_UP)",
873+
"name": "variable.other.constant.ini"
874+
},
788875
"FXList-Class": {
789876
"begin": "(^[ \\t]+)?([Ff][Xx][Ll]ist)[ \\t]+([a-zA-Z_][\\w%]*)",
790877
"beginCaptures": {

0 commit comments

Comments
 (0)