diff --git a/autotests/html/brightscript.brs.html b/autotests/html/brightscript.brs.html --- a/autotests/html/brightscript.brs.html +++ b/autotests/html/brightscript.brs.html @@ -104,6 +104,10 @@ a = b.foo("string",1,{a:b},1.5,[1,2,3]) unnamed_function = function ( a as Integer ) as Float + +a = +-b +a = &h42abcdef +c = var@attr end function unnamed_sub = sub ( a as Integer ) as Void diff --git a/autotests/input/brightscript.brs b/autotests/input/brightscript.brs --- a/autotests/input/brightscript.brs +++ b/autotests/input/brightscript.brs @@ -98,6 +98,10 @@ a = b.foo("string",1,{a:b},1.5,[1,2,3]) unnamed_function = function ( a as Integer ) as Float + +a = +-b +a = &h42abcdef +c = var@attr end function unnamed_sub = sub ( a as Integer ) as Void diff --git a/autotests/reference/brightscript.brs.ref b/autotests/reference/brightscript.brs.ref --- a/autotests/reference/brightscript.brs.ref +++ b/autotests/reference/brightscript.brs.ref @@ -98,6 +98,10 @@ a = b.foo("string",1,{a:b},1.5,[1,2,3])

unnamed_function = function ( a as Integer ) as Float
+
+a = +-b
+a = &h42abcdef
+c = var@attr
end function

unnamed_sub = sub ( a as Integer ) as Void
diff --git a/data/syntax/brightscript.xml b/data/syntax/brightscript.xml --- a/data/syntax/brightscript.xml +++ b/data/syntax/brightscript.xml @@ -4,7 +4,7 @@ name="BrightScript" section="Scripts" extensions="*.brs" - version="4" + version="5" kateversion="5.0" author="Daniel Levin (dendy.ua@gmail.com)" license="MIT"> @@ -599,6 +599,8 @@ --> + + @@ -611,6 +613,7 @@ + @@ -628,6 +631,7 @@ + @@ -720,6 +724,10 @@ + + + +