Skip to content

Commit 853c8d3

Browse files
committed
Merge commit '716c3b976b301a10c90161ff366834db49f40ab7' into remove-concurrent
# Conflicts: # src/editors/ace/docTooltip/index.ts
2 parents d5bc34a + 716c3b9 commit 853c8d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/__tests__/mode.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const CATEGORY = {
2222
types: /\bstorage.type\b/,
2323
forbidden: /\bvariable.language\b/,
2424
keywords: /\bkeyword\b/,
25+
consts: /\bbuiltinconsts\b/,
2526
number: /\bconstant.numeric\b/,
26-
bool: /\bconstant.language.boolean\b/,
27-
identifier: /\bidentifier\b/
27+
bool: /\bconstant.language.boolean\b/
2828
}
2929

3030
const setSession = (chapter: Chapter, variant: Variant, external: string, code: string): void => {
@@ -49,15 +49,15 @@ test('function token type error', () => {
4949
const token2 = session.getTokenAt(1, 3)
5050

5151
// at source 2, pair is function but set_tail is not
52-
expect(expectedBool(token1, CATEGORY.identifier)).toBe(true)
52+
expect(expectedBool(token1, CATEGORY.functions)).toBe(true)
5353
expect(expectedBool(token2, CATEGORY.functions)).toBe(false)
5454

5555
// at source 4, set_tail is function as well
5656
setSession(Chapter.SOURCE_4, defaultVariant, defaultExternal, code)
5757
const newToken1 = session.getTokenAt(0, 11)
5858
const newToken2 = session.getTokenAt(1, 3)
59-
expect(expectedBool(newToken1, CATEGORY.identifier)).toBe(true)
60-
expect(expectedBool(newToken2, CATEGORY.identifier)).toBe(true)
59+
expect(expectedBool(newToken1, CATEGORY.functions)).toBe(true)
60+
expect(expectedBool(newToken2, CATEGORY.functions)).toBe(true)
6161
})
6262

6363
test('constants are not correctly loaded', () => {
@@ -72,7 +72,7 @@ test('constants are not correctly loaded', () => {
7272
expect(expectedBool(token2, CATEGORY.number)).toBe(true)
7373

7474
const token3 = session.getTokenAt(2, 1)
75-
expect(expectedBool(token3, CATEGORY.identifier)).toBe(true)
75+
expect(expectedBool(token3, CATEGORY.consts)).toBe(true)
7676
})
7777

7878
test('operator syntax type error', () => {

src/editors/ace/docTooltip/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ export const SourceDocumentation = {
5050
'4_explicit-control': resolveImportInconsistency(source_4_explicit_control)
5151
},
5252
ext_lib
53-
} as const
53+
}

0 commit comments

Comments
 (0)