Skip to content
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
{
"category": "KX",
"command": "kdb.toggleParameterCache",
"title": "KX: Toggle parameter cache"
"title": "Toggle Parameter Cache"
},
{
"category": "KX",
Expand Down
4 changes: 2 additions & 2 deletions server/src/linter/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* specific language governing permissions and limitations under the License.
*/

import { DateTimeLiteral } from "../parser";
import {
DateTimeLiteral,
SyntaxError,
Token,
amended,
Expand All @@ -23,7 +23,7 @@ import {
inParam,
ordered,
qualified,
} from "../parser";
} from "../parser/utils";

export function deprecatedDatetime(tokens: Token[]): Token[] {
return tokens.filter((token) => token.tokenType === DateTimeLiteral);
Expand Down
2 changes: 1 addition & 1 deletion server/src/linter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* specific language governing permissions and limitations under the License.
*/

import { Token } from "../parser";
import { Rules } from "./rules";
import { Token } from "../parser/utils";

const enabled = [
"DEPRECATED_DATETIME",
Expand Down
2 changes: 1 addition & 1 deletion server/src/linter/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* specific language governing permissions and limitations under the License.
*/

import { Token } from "../parser";
import * as checks from "./checks";
import { Token } from "../parser/utils";

const enum DiagnosticSeverity {
Error = 1,
Expand Down
3 changes: 1 addition & 2 deletions server/src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
* specific language governing permissions and limitations under the License.
*/

export * from "./utils";
export * from "./keywords";
export * from "./language";
export * from "./lexer";
export * from "./literals";
export * from "./parser";
export * from "./tokens";
export * from "./source";
7 changes: 6 additions & 1 deletion server/src/parser/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import {
TestLambdaBlock,
Cond,
CutDrop,
Dict,
} from "./tokens";

const includes = [
Expand Down Expand Up @@ -223,6 +224,10 @@ const repository = {
name: "keyword.operator.arithmetic.q",
match: _(CutDrop),
},
{
name: "keyword.operator.arithmetic.q",
match: _(Dict),
},
{
name: "keyword.operator.arithmetic.q",
match: _(Operator),
Expand Down Expand Up @@ -266,7 +271,7 @@ function _(token: TokenType | RegExp) {
}

function __(token: TokenType | RegExp) {
return `(?<![A-Za-z0-9.])${_(token)}(?![A-Za-z0-9.])`;
return `(?<![A-Za-z0-9.])${_(token)}(?![A-Za-z0-9._])`;
}

export function generateTextMateGrammar() {
Expand Down
2 changes: 2 additions & 0 deletions server/src/parser/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import {
TestLambdaBlock,
Cond,
CutDrop,
Dict,
} from "./tokens";

const Language = [
Expand Down Expand Up @@ -95,6 +96,7 @@ const Language = [
Iterator,
Comparator,
DoubleColon,
Dict,
Operator,
Cond,
Colon,
Expand Down
Loading
Loading