@@ -33,6 +33,7 @@ contexts:
3333 - include : func
3434 - include : gdl-globals
3535 - include : optional
36+ - include : easyparams
3637 - include : expression-common # needs to be last bc of brackets
3738 - include : dotted-names
3839 - include : generic-names
@@ -403,11 +404,39 @@ contexts:
403404 - include : string
404405 - include : arrays
405406
406- # ############## opt Params #################
407+ # ############## Params #################
407408 optional :
408409 - match : (?i)\b([ABCDEFG]|ZZYZX|(ac|gs|ifc|ROOM|FM)_\w+)\b
409410 scope : keyword.optionalparameters.fixed.gdl
410411
412+ easyparams :
413+ - match : (?i)\b((x|y|z)_\w+)\b
414+ scope : meta.parameters.length.gdl
415+ - match : (?i)\b((i|int)_\w+)\b
416+ scope : meta.parameters.integer.gdl
417+ - match : (?i)\b((f|float|real)_\w+)\b
418+ scope : meta.parameters.float.gdl
419+ - match : (?i)\b(ang_\w+)\b
420+ scope : meta.parameters.angle.gdl
421+ - match : (?i)\b((b|bool)_\w+)\b
422+ scope : meta.parameters.bool.gdl
423+ - match : (?i)\b(str_\w+)\b
424+ scope : meta.parameters.string.gdl
425+ - match : (?i)\b(fill_\w+)\b
426+ scope : meta.parameters.fill.gdl
427+ - match : (?i)\b(mat_\w+)\b
428+ scope : meta.parameters.material.gdl
429+ - match : (?i)\b(pen_\w+)\b
430+ scope : meta.parameters.pen.gdl
431+ - match : (?i)\b((lt|line)_\w+)\b
432+ scope : meta.parameters.linetype.gdl
433+ - match : (?i)\b(bm_\w+)\b
434+ scope : meta.parameters.bmat.gdl
435+ - match : (?i)\b(prof_\w+)\b
436+ scope : meta.parameters.profile.gdl
437+ - match : (?i)\b(dict_\w+)\b
438+ scope : meta.parameters.dict.gdl
439+
411440# ############## GDL globals #################
412441 gdl-globals :
413442 - include : gdl-global-param
0 commit comments