Skip to content

Commit a6c272f

Browse files
committed
Partial refactor
1 parent ae971fe commit a6c272f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

AutoLISP.YAML-tmLanguage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ repository:
7878
match: (?i)(?<=^|['\s()])(?:while|cond|if|progn|repeat)(?=$|[\s()])
7979
- name: support.function.base.vanilla.autolisp
8080
match: (?i)(?<=^|['\s()])(?:load|defun(?:-q(?:-list-(?:ref|set)?)?)?|set[q]?|function|lambda|read|eval|trace|untrace)(?=$|[\s()])
81+
- name: support.function.type.vanilla.autolisp
82+
match: (?i)(?<=^|['\s()])(?:type)(?=$|[\s()])
8183
- name: support.function.comparsion.vanilla.autolisp
8284
match: (?i)(?<=^|['\s()])(?:eq|equal|=|/=|<|<=|>|>=|or|and|not)(?=$|[\s()])
8385
- name: support.function.symbol.vanilla.autolisp
@@ -87,7 +89,7 @@ repository:
8789
- name: support.function.math.vanilla.autolisp
8890
match: (?i)(?<=^|['\s()])(?:numberp|zerop|minusp|float|fix|\+|-|\*|/|1\+|1-|min|max|abs|rem|gcd|sqrt|expt|exp|log|sin|cos|atan|~|lsh|logand|logior|boole)(?=$|[\s()])
8991
- name: support.function.list.vanilla.autolisp
90-
match: (?i)(?<=^|['\s()])(?:atom|null|listp|length|c[ad]{1,4}r|nth|last|cons|list|append|reverse|mapcar|foreach|apply|member|subst|assoc)(?=$|[\s()])
92+
match: (?i)(?<=^|['\s()])(?:atom|null|listp|cons|list|c[ad]{1,4}r|last|nth|length|reverse|append|mapcar|foreach|apply|member|subst|assoc)(?=$|[\s()])
9193
- name: support.function.io.vanilla.autolisp
9294
match: (?i)(?<=^|['\s()])(?:open|close|(?:read|write)-(?:char|line)|findfile|findtrustedfile|fnsplitl|prin[tc1])(?=$|[\s()])
9395
- name: support.function.display.vanilla.autolisp
@@ -263,7 +265,7 @@ repository:
263265
- name: support.function.require.call.autolisp
264266
match: (?i)(?<=^|['\s()])ll-(?:featurep|provide|require)(?=$|[\s()])
265267
- name: support.function.type.call.autolisp
266-
match: (?i)(?<=^|['\s()])ll-(?:typep|anyp)(?=$|[\s()])
268+
match: (?i)(?<=^|['\s()])ll-(?:anyp|typep)(?=$|[\s()])
267269
- name: support.constant.boolean.call.autolisp
268270
match: (?i)(?<=^|['\s()])ll-(?:true|false)(?=$|[\s()])
269271
- name: support.function.boolean.call.autolisp
@@ -293,9 +295,7 @@ repository:
293295
- name: support.function.mathx.call.autolisp
294296
match: (?i)(?<=^|['\s()])ll-(?:1/|sqr|exp10|exp2|log10|log2|cot|sec|csc|acot|asec|acsc|versin|vercos|coversin|covercos|haversin|havercos|hacoversin|hacovercos|exsec|excsc|sinh|cosh|tanh|coth|sech|csch|asinh|acosh|atanh|acoth|asech|acsch|gons->radians|radians->gons|gons->degrees|degrees->gons|dms->degrees|degrees->dms)(?=$|[\s()])
295297
- name: support.function.list.call.autolisp
296-
match: (?i)(?<=^|['\s()])ll-(?:consp|endp|make-list|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|rest|nthcdr|firstn|butlast|butlastn|lastn|sublist|subseq|split(?:-if(?:-not)?|-at(?:-first|-last)?|-all)?|partition(?:-all)?|separate|list-length|revappend|count(?:-if(?:-not)?)?|some|every|foldr|foldl|reduce(?:-from-end|-with-init)?|member-if(?:-not)?|position(?:-if(?:-not)?)?|inlistp|mismatch|subst(?:-if(?:-not)?|-nth|-first|-last)|substree|insert|remove(?:-if(?:-not)?|-nth|-first|-last)?|remove(?:-adjacent)?-duplicates|tailp|ldiff)(?=$|[\s()])
297-
- name: support.function.listx.call.autolisp
298-
match: (?i)(?<=^|['\s()])ll-(?:dotted-pair-p|dotted-list-p|last-cdr|maplist|maptree|flatten)(?=$|[\s()])
298+
match: (?i)(?<=^|['\s()])ll-(?:consp|endp|make-list|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|rest|nthcdr|firstn|butlast|butlastn|lst-cons|lastn|sublist|subseq|split(?:-if(?:-not)?|-at(?:-first|-last)?|-all)?|partition(?:-all)?|separate|list-length|revappend|copy-(?:list|tree)|count(?:-if(?:-not)?)?|maplist|maptree|some|every|foldr|foldl|reduce(?:-from-end|-with-init)?|member-if(?:-not)?|position(?:-if(?:-not)?)?|inlistp|mismatch|subst(?:-if(?:-not)?|-nth|-first|-last)|substree|sublis|flatten|insert|remove(?:-if(?:-not)?|-nth|-first|-last)?|remove(?:-adjacent)?-duplicates|tailp|ldiff)(?=$|[\s()])
299299
- name: support.function.listset.call.autolisp
300300
match: (?i)(?<=^|['\s()])ll-(?:subsetp|adjoin|union|intersection|set-difference|set-exclusive-or)(?=$|[\s()])
301301
- name: support.function.activex.call.autolisp

0 commit comments

Comments
 (0)