Make the scrcode macros handle identifiers.
This commit is contained in:
@@ -36,6 +36,12 @@
|
|||||||
; Just output the character
|
; Just output the character
|
||||||
_scrcode arg1
|
_scrcode arg1
|
||||||
|
|
||||||
|
; Check for an identifier
|
||||||
|
.elseif .match (.left (1, {arg1}), identifier)
|
||||||
|
|
||||||
|
; Just output the identifier
|
||||||
|
_scrcode arg1
|
||||||
|
|
||||||
; Anything else is an error
|
; Anything else is an error
|
||||||
.else
|
.else
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,12 @@
|
|||||||
; Just output the character
|
; Just output the character
|
||||||
_scrcode arg1
|
_scrcode arg1
|
||||||
|
|
||||||
|
; Check for an identifier
|
||||||
|
.elseif .match (.left (1, {arg1}), identifier)
|
||||||
|
|
||||||
|
; Just output the identifier
|
||||||
|
_scrcode arg1
|
||||||
|
|
||||||
; Anything else is an error
|
; Anything else is an error
|
||||||
.else
|
.else
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,12 @@
|
|||||||
; Just output the character
|
; Just output the character
|
||||||
_scrcode arg1
|
_scrcode arg1
|
||||||
|
|
||||||
|
; Check for an identifier
|
||||||
|
.elseif .match (.left (1, {arg1}), identifier)
|
||||||
|
|
||||||
|
; Just output the identifier
|
||||||
|
_scrcode arg1
|
||||||
|
|
||||||
; Anything else is an error
|
; Anything else is an error
|
||||||
.else
|
.else
|
||||||
.error "scrcode: invalid argument type"
|
.error "scrcode: invalid argument type"
|
||||||
|
|||||||
Reference in New Issue
Block a user