File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
55
55
[ , name , ext = "cls" ] = match ;
56
56
}
57
57
} else {
58
- const match = content . match ( / ^ R O U T I N E ( [ ^ \s ] + ) (?: \s + \[ . * T y p e = ( [ a - z ] { 3 , } ) ) ? / i) ;
58
+ const match = content . match ( / ^ R O U T I N E ( [ ^ \s ] + ) (?: \s * \[ \s * T y p e \s * = \s * \b ( [ a - z ] { 3 } ) \b ) ? / i) ;
59
59
if ( match ) {
60
60
[ , name , ext = "mac" ] = match ;
61
61
} else {
@@ -65,7 +65,7 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
65
65
if ( ! name ) {
66
66
return null ;
67
67
}
68
- name += ext ? "." + ext : "" ;
68
+ name += ext ? "." + ext . toLowerCase ( ) : "" ;
69
69
70
70
return {
71
71
content,
Original file line number Diff line number Diff line change 3
3
"name" : " objectscript_macros" ,
4
4
"scopeName" : " source.objectscript_macros" ,
5
5
"patterns" : [
6
+ {
7
+ "match" : " ^(ROUTINE)\\ s(\\ b[a-zA-Z0-9.]+\\ b)" ,
8
+ "captures" : {
9
+ "1" : { "name" : " keyword.control" },
10
+ "2" : { "name" : " entity.name.class" }
11
+ }
12
+ },
6
13
{ "include" : " #include" },
7
14
{ "include" : " #dim" },
8
15
{ "include" : " #define" },
You can’t perform that action at this time.
0 commit comments