Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit 42c81ca

Browse files
committed
Fix for macros with no parameters
1 parent 734b133 commit 42c81ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grammars/catchpoint.cson

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ scopeName: 'source.cps'
22
fileTypes: ['cps']
33
name: 'Catchpoint Selenium Script'
44
patterns: [
5-
{
5+
{
66
begin: '^//'
77
end: '\\n'
88
name: 'comment.line.double-slash.cps'
@@ -27,15 +27,15 @@ patterns: [
2727
name: 'keyword.other.cps'
2828
'3':
2929
name: 'keyword.other.cps'
30-
match: '(?i)(\\$\\{(AsnName|AsnValue|Base64|CityId|CityName|ContinentName|CountryName|ExtractChild|ExtractVariable|Extract|File|GlobalVariable|Hash|Hex|HostRequestAuthority|HostRequestHost|HostRequestPath|HostRequestPathAndQuery|HostRequestQuery|HostRequestUrl|If|IpVersion|IspId|IspName|LocationId|LocationLatitude|LocationLongitude|LocationName|NetworkType|Password|RandomGuid|RandomList|Random|RegionName|SequentialListByLocation|SequentialListByRun|SequentialList|Switch|TestId|TimeDay|TimeDiff|TimeEpoch|TimeFormat|TimeTrim|Time|UrlDecode|UrlEncode|UserName|var)\\(?).*?(\\)\\})'
30+
match: '(?i)(\\$\\{(AsnName|AsnValue|Base64|CityId|CityName|ContinentName|CountryName|ExtractChild|ExtractVariable|Extract|File|GlobalVariable|Hash|Hex|HostRequestAuthority|HostRequestHost|HostRequestPath|HostRequestPathAndQuery|HostRequestQuery|HostRequestUrl|If|IpVersion|IspId|IspName|LocationId|LocationLatitude|LocationLongitude|LocationName|NetworkType|Password|RandomGuid|RandomList|Random|RegionName|SequentialListByLocation|SequentialListByRun|SequentialList|Switch|TestId|TimeDay|TimeDiff|TimeEpoch|TimeFormat|TimeTrim|Time|UrlDecode|UrlEncode|UserName|var|add|offset|ref|sub)\\(?).*?(\\)?\\})'
3131
name: 'string.quoted.double.cps'
3232
}
3333
{
3434
captures:
3535
'1':
3636
name: 'keyword.control.cps'
3737
'2':
38-
name: 'variable.language.default.cps'
38+
name: 'variable.language.default.cps'
3939
match: '(?i)(var)\\s*(\\w+)\\s+'
4040
name: 'keyword.control.cps'
4141
}

0 commit comments

Comments
 (0)