Skip to content

Commit ef862ea

Browse files
committed
ac 22
1 parent 3d6f412 commit ef862ea

File tree

6 files changed

+85
-9
lines changed

6 files changed

+85
-9
lines changed

GDL-dark.tmTheme

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,19 @@
167167
<string>#34495e</string>
168168
</dict>
169169
</dict>
170+
<dict>
171+
<key>name</key>
172+
<string>Autotext</string>
173+
<key>scope</key>
174+
<string>constant.other.autotext</string>
175+
<key>settings</key>
176+
<dict>
177+
<key>foreground</key>
178+
<string>#93BD50</string>
179+
<key>background</key>
180+
<string>#243341</string>
181+
</dict>
182+
</dict>
170183
<dict>
171184
<key>name</key>
172185
<string>Operators</string>

GDL-light.tmTheme

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,19 @@
176176
<string>#d6dade</string>
177177
</dict>
178178
</dict>
179+
<dict>
180+
<key>name</key>
181+
<string>Autotext</string>
182+
<key>scope</key>
183+
<string>constant.other.autotext</string>
184+
<key>settings</key>
185+
<dict>
186+
<key>foreground</key>
187+
<string>#84aa48</string>
188+
<key>background</key>
189+
<string>#d6dade</string>
190+
</dict>
191+
</dict>
179192
<dict>
180193
<key>name</key>
181194
<string>Operators</string>

GDL.sublime-syntax

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scope: source.gdl
88

99
variables:
1010
escaped_byte: '\\(n|t|\\)?'
11-
units: '(e|mm?|cm|f(f|d)?i|d(f|i)|pt|sq(mm?|cm|f|i)|d(d|ms)|gr|rad|surv|(ga)?l|cu((c|m)?m|f|i|y))'
11+
units: '(e|(m|c|d)?m|f(f|d)?i|d(f|i)|pt|sq(mm?|cm|f|i)|d(d|ms)|gr|rad|surv|(ga)?l|cu((c|m)?m|f|i|y))'
1212
subroutine_name: ([0-9]+|(")[a-z_0-9]+("))
1313
function_names: |-
1414
(NOT|ABS|CEIL|INT|FRA|ROUND_INT|SGN|ACS|ASN|ATN|COS|SIN|TAN|EXP|LGT|LOG|SQR|MAX|MIN|RND
@@ -98,6 +98,7 @@ contexts:
9898
- include: escaped-byte
9999
- include: string_placeholder
100100
- include: request-param
101+
- include: autotext
101102
- include: optional
102103
- match: "'|`"
103104
scope: punctuation.definition.string.begin.localized.gdl
@@ -110,6 +111,7 @@ contexts:
110111
- include: escaped-byte
111112
- include: string_placeholder
112113
- include: request-param
114+
- include: autotext
113115
- include: optional
114116

115117
string_placeholder:
@@ -124,6 +126,23 @@ contexts:
124126
|(~|\.|n|s))? # possible without number and unit
125127
scope: constant.other.placeholder.gdl
126128
129+
autotext:
130+
- match: |-
131+
(?ix)(<(
132+
project(name|number|status)|dateOfIssue|
133+
site(fullAddress|address[1-3]|city|state|postcode|country)|
134+
keywords|notes|
135+
(architect(name|position|company|fullAddress|address[1-3]|city|state|postcode|country|email|phone|fax|web)|
136+
cadTechnician|
137+
(client(name|company|fullAddress|address[1-3]|city|state|postcode|country|email|phone|fax))|
138+
(short|long)date)|time|lastSaved(at|by)|
139+
(file(name|path)|layout(name|ID|number)|subset(name|ID)|drawing(name|ID|scale)|originalScale|magnification|renovationFilter|
140+
marker(sheet|drawing)number(90|110)?|backRefSheetNumber)(_R)?|
141+
numOfLayouts|change(ID|description)|
142+
revisionID|(current)?issue(ID|description|date|dby)|currentRevisionID
143+
)>)
144+
scope: constant.other.autotext.gdl
145+
127146
line-continuation:
128147
- match: (?<=\s)(:)
129148
scope: punctuation.separator.continuation.inline.gdl
@@ -253,7 +272,7 @@ contexts:
253272
- match: (?i)(?<=^|\s)(CUT(PLANE(\{[2-4]\})?|POLY[A]?|FORM(\{2\})?|SHAPE|END)|WALL(HOLE|NICHE))(?=$|\s)
254273
scope: keyword.gdl.shape.3D.cut
255274

256-
- match: (?i)(?<=^|\s)((PLACE|KILL)GROUP|(ADD|ISECT|SUB)GROUP(\{[23]\})?|SWEEPGROUP(\{[2-4]\})?|ISECTLINES|CREATEGROUPWITHMATERIAL)(?=$|\s|\()
275+
- match: (?i)(?<=^|\s)((place|kill)group|(add|isect|sub)group(\{[23]\})?|sweepgroup(\{[2-5]\})?|isectlines|creategroupwithmaterial)(?=$|\s|\()
257276
scope: keyword.gdl.shape.3D.seo
258277

259278
- match: (?i)(?<=^|\s)(TEXT|RICHTEXT)(?=$|\s)
@@ -327,8 +346,9 @@ contexts:
327346
scope: keyword.gdl.nongeo.properties
328347

329348
- match: |-
330-
(?ix)\b(UI_(DIALOG|(CURRENT_)?PAGE|BUTTON|SEPARATOR|GROUPBOX|PICT(_BUTTON)?|STYLE|OUTFIELD|INFIELD(\{[2-4]\})?
331-
|RADIOBUTTON(\{[2]\})?|TOOLTIP|LISTFIELD|LISTITEM(\{2\})?|COLORPICKER(\{2\})?|SLIDER(\{2\})?|CUSTOM_POPUP_(INFIELD|LISTITEM)(\{2\})?))
349+
(?ix)\b(UI_(dialog|(current_)?page|button|pict(_button)?|separator|groupbox|style|outfield|tooltip|listfield|
350+
infield(\{[2-4]\})?|
351+
((pict_)?radiobutton|pict_pushcheckbutton|listitem|colorpicker|slider|textstyle_infield|custom_popup_(infield|listitem))(\{[2]\})?))
332352
(?=$|\s)
333353
scope: keyword.gdl.nongeo.ui
334354

Messages/v2.2.0.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
██████╗ ██████╗ ██╗
3+
██╔════╝ ██╔══██╗██║
4+
██║ ███╗██║ ██║██║
5+
██║ ██║██║ ██║██║
6+
╚██████╔╝██████╔╝███████╗
7+
╚═════╝ ╚═════╝ ╚══════╝
8+
9+
GDL Sublime Text package
10+
has successfully updated
11+
12+
*************************
13+
14+
VERSION 2.2.0
15+
16+
*************************
17+
18+
• compatibility with
19+
upcoming Archicad 22
20+

Preferences/GDL.sublime-completions

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,15 @@
376376
"tube{2}",
377377

378378
/* U U U U U U U U U U U U U U U U U U U U U U U U U U U */
379-
{ "trigger": "ui_button", "contents": "ui_button ${1:type}, ${2:text}, ${3:x}, ${4:y}, ${5:width}, ${6:height}" },
379+
{ "trigger": "ui_button", "contents": "ui_button ${1:type}, ${2:text}, ${3:x}, ${4:y}, ${5:width}, ${6:height}, ${7:id}" },
380380
"ui_cancel",
381-
{ "trigger": "ui_colorpicker", "contents": "ui_colorpicker \"${1:redParamName}\", \"${2:greenParamName}\", \"${3:blueParamName}\", ${4:x0}, ${5:y9}, ${6:width}, ${6:height}" },
382-
{ "trigger": "ui_colorpicker{2}", "contents": "ui_colorpicker{2} ${1:redParamName}, ${2:greenParamName}, ${3:blueParamName}, ${4:x0}, ${5:y9}, ${6:width}, ${6:height}" },
381+
{ "trigger": "ui_colorpicker", "contents": "ui_colorpicker \"${1:redParamName}\", \"${2:greenParamName}\", \"${3:blueParamName}\", ${4:x}, ${5:y}, ${6:width}, ${6:height}" },
382+
{ "trigger": "ui_colorpicker{2}", "contents": "ui_colorpicker{2} ${1:redParamName}, ${2:greenParamName}, ${3:blueParamName}, ${4:x}, ${5:y}, ${6:width}, ${6:height}" },
383383
{ "trigger": "ui_current_page", "contents": "ui_current_page ${1:index}" },
384+
{ "trigger": "ui_custom_popup_infield", "contents": "ui_custom_popup_infield \"${1:name}\", ${2:x}, ${3:y}, ${4:width}, ${5:height}" },
385+
{ "trigger": "ui_custom_popup_infield{2}", "contents": "ui_custom_popup_infield{2} ${1:name}, ${2:x}, ${3:y}, ${4:width}, ${5:height}" },
386+
{ "trigger": "ui_custom_popup_listitem", "contents": "ui_custom_popup_listitem ${1:itemID}, ${2:fieldID}, \"${3:name}\", ${4:childFlag}, ${5:image}, ${6:paramDesc}" },
387+
{ "trigger": "ui_custom_popup_listitem{2}", "contents": "ui_custom_popup_listitem{2} ${1:itemID}, ${2:fieldID}, ${3:name}, ${4:childFlag}, ${5:image}, ${6:paramDesc}" },
384388
{ "trigger": "ui_dialog", "contents": "ui_dialog ${1:title}" },
385389
"ui_function",
386390
{ "trigger": "ui_groupbox", "contents": "ui_groupbox ${1:text}, ${2:x}, ${3:y}, ${4:width}, ${5:height}" },
@@ -394,16 +398,21 @@
394398
{ "trigger": "ui_listitem{2}", "contents": "ui_listitem{2} ${1:itemdID}, ${2:fieldID}, \"${3:name}\"" },
395399
"ui_next",
396400
"ui_ok",
397-
{ "trigger": "ui_outfield", "contents": "ui_outfield ${1:expression}, ${2:x}, ${3:y}, ${4:width}, ${5:height}" },
401+
{ "trigger": "ui_outfield", "contents": "ui_outfield ${1:expression}, ${2:x}, ${3:y}, ${4:width}, ${5:height}, ${6:flags}" },
398402
{ "trigger": "ui_page", "contents": "ui_page ${1:page_number}" },
399403
{ "trigger": "ui_pict", "contents": "ui_pict ${1:expression}, ${2:x}, ${3:y}, ${4:width}, ${5:height}" },
400404
{ "trigger": "ui_pict_button", "contents": "ui_pict_button ${1:type}, ${2:text}, ${3:picture_reference}, ${4:x}, ${5:y}, ${6:width}, ${7:height}" },
405+
{ "trigger": "ui_pict_pushcheckbutton", "contents": "ui_pict_pushcheckbutton ${1:name}, ${2:text}, ${3:picture_reference}, ${4:frame_flag}, ${5:x}, ${6:y}, ${7:width}, ${8:height}" },
406+
{ "trigger": "ui_pict_pushcheckbutton{2}", "contents": "ui_pict_pushcheckbutton{2} \"${1:name}\", ${2:text}, ${3:picture_reference}, ${4:frame_flag}, ${5:x}, ${6:y}, ${7:width}, ${8:height}" },
401407
{ "trigger": "ui_radiobutton", "contents": "ui_radiobutton ${1:name}, ${2:value}, ${3:text}, ${4:x}, ${5:y}, ${6:width}, ${7:height}" },
408+
{ "trigger": "ui_radiobutton{2}", "contents": "ui_radiobutton{2} \"${1:name}\", ${2:value}, ${3:text}, ${4:x}, ${5:y}, ${6:width}, ${7:height}" },
402409
"ui_prev",
403410
{ "trigger": "ui_separator", "contents": "ui_separator ${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}" },
404411
{ "trigger": "ui_slider", "contents": "ui_slider \"${1:name}\", ${2:x0}, ${3:y0}, ${4:width}, ${5:height}" },
405412
{ "trigger": "ui_slider{2}", "contents": "ui_slider{2} ${1:name}, ${2:x0}, ${3:y0}, ${4:width}, ${5:height}" },
406413
{ "trigger": "ui_style", "contents": "ui_style ${1:fontsize}, ${2:face_code}" },
414+
{ "trigger": "ui_textstyle_infield", "contents": "ui_textstyle_infield ${1:name}, ${2:faceCodeMask}, ${3:x}, ${4:y}, ${5:button width}, ${6:button height}" },
415+
{ "trigger": "ui_textstyle_infield{2}", "contents": "ui_textstyle_infield{2} \"${1:name}\", ${2:faceCodeMask}, ${3:x}, ${4:y}, ${5:button width}, ${6:button height}" },
407416
{ "trigger": "ui_tooltip", "contents": "ui_tooltip ${1:tooltiptext}" },
408417
"until",
409418
"use",

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"v2.0.0": "Messages/v2.0.0.txt",
44
"v2.0.1": "Messages/v2.0.1.txt",
55
"v2.0.2": "Messages/v2.0.2.txt",
6-
"v2.1.0": "Messages/v2.1.0.txt"
6+
"v2.1.0": "Messages/v2.1.0.txt",
7+
"v2.2.0": "Messages/v2.2.0.txt"
78
}

0 commit comments

Comments
 (0)