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 {
5555 [ , name , ext = "cls" ] = match ;
5656 }
5757 } 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) ;
5959 if ( match ) {
6060 [ , name , ext = "mac" ] = match ;
6161 } else {
@@ -65,7 +65,7 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
6565 if ( ! name ) {
6666 return null ;
6767 }
68- name += ext ? "." + ext : "" ;
68+ name += ext ? "." + ext . toLowerCase ( ) : "" ;
6969
7070 return {
7171 content,
Original file line number Diff line number Diff line change 33 "name" : " objectscript_macros" ,
44 "scopeName" : " source.objectscript_macros" ,
55 "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+ },
613 { "include" : " #include" },
714 { "include" : " #dim" },
815 { "include" : " #define" },
You can’t perform that action at this time.
0 commit comments