Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browser-ext/src/web-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function labels(state: ParserState) : boolean {

let match;
// Phaser block
if ((match = state.stmt.match(/^(BEGIN|INIT|CHECK|UNITCHECK|END)\s*\{/))) {
if ((match = state.stmt.match(/^(BEGIN|INIT|CHECK|UNITCHECK|END|ADJUST)\s*\{/))) {
const phaser = match[1];
const endLine = SubEndLine(state);

Expand Down
2 changes: 1 addition & 1 deletion server/perl.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@
"name": "variable.parameter.function.perl"
}
},
"match": "^\\s*(BEGIN|UNITCHECK|CHECK|INIT|END|DESTROY)\\b",
"match": "^\\s*(BEGIN|UNITCHECK|CHECK|INIT|END|DESTROY|ADJUST)\\b",
"name": "meta.function.perl"
},
{
Expand Down
2 changes: 1 addition & 1 deletion server/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function look_ahead_signatures(state: ParserState): string[] {
function labels(state: ParserState): boolean {
let match;
// Phaser block
if ((match = state.stmt.match(/^(BEGIN|INIT|CHECK|UNITCHECK|END)\s*\{/))) {
if ((match = state.stmt.match(/^(BEGIN|INIT|CHECK|UNITCHECK|END|ADJUST)\s*\{/))) {
const phaser = match[1];
const endLine = SubEndLine(state);

Expand Down