use string.quoted for strings (for now) (until defunkt gets a new vscode theme)
This commit is contained in:
parent
ab12212df2
commit
47d1ea1a0b
|
|
@ -12,7 +12,7 @@ import { ScopeTracker } from './scopeTracker'
|
||||||
export const TOKEN_TYPES = [
|
export const TOKEN_TYPES = [
|
||||||
SemanticTokenTypes.function,
|
SemanticTokenTypes.function,
|
||||||
SemanticTokenTypes.variable,
|
SemanticTokenTypes.variable,
|
||||||
SemanticTokenTypes.string,
|
'string.quoted',
|
||||||
SemanticTokenTypes.number,
|
SemanticTokenTypes.number,
|
||||||
SemanticTokenTypes.operator,
|
SemanticTokenTypes.operator,
|
||||||
SemanticTokenTypes.keyword,
|
SemanticTokenTypes.keyword,
|
||||||
|
|
@ -161,7 +161,7 @@ function getTokenType(
|
||||||
// If not in scope, treat as string (like a Word)
|
// If not in scope, treat as string (like a Word)
|
||||||
if (!scopeTracker.isInScope(identifierText, node)) {
|
if (!scopeTracker.isInScope(identifierText, node)) {
|
||||||
return {
|
return {
|
||||||
type: TOKEN_TYPES.indexOf(SemanticTokenTypes.string),
|
type: TOKEN_TYPES.indexOf('string.quoted'),
|
||||||
modifiers: 0,
|
modifiers: 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -188,9 +188,14 @@ function getTokenType(
|
||||||
|
|
||||||
case Terms.String:
|
case Terms.String:
|
||||||
case Terms.StringFragment:
|
case Terms.StringFragment:
|
||||||
|
return {
|
||||||
|
type: TOKEN_TYPES.indexOf('string.quoted'),
|
||||||
|
modifiers: 0,
|
||||||
|
}
|
||||||
|
|
||||||
case Terms.Word:
|
case Terms.Word:
|
||||||
return {
|
return {
|
||||||
type: TOKEN_TYPES.indexOf(SemanticTokenTypes.string),
|
type: TOKEN_TYPES.indexOf('string.quoted'),
|
||||||
modifiers: 0,
|
modifiers: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user