Skip to content

Commit

Permalink
fix: syntax highlighting not working (#52)
Browse files Browse the repository at this point in the history
Consistently use the file extension `.ttsl` so syntax highlighting
works.

---------

Co-authored-by: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com>
  • Loading branch information
lars-reimann and megalinter-bot authored Jun 20, 2024
1 parent 16d14e1 commit c6e0bdf
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 1,232 deletions.
8 changes: 4 additions & 4 deletions packages/ttsl-lang/langium-config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"projectName": "SafeDs",
"projectName": "TTSL",
"languages": [
{
"id": "safe-ds",
"grammar": "src/language/grammar/safe-ds.langium",
"fileExtensions": [".tsl", ".tsltest"]
"id": "ttsl",
"grammar": "src/language/grammar/ttsl.langium",
"fileExtensions": [".ttsl"]
}
],
"out": "src/language/generated"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
grammar TSL
grammar TTSL

// -----------------------------------------------------------------------------
// Base interfaces
Expand Down
4 changes: 2 additions & 2 deletions packages/ttsl-lang/src/language/helpers/nodeProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export const hasAnnotationCallOf = (
});
};

export const isInternal = (node: TslDeclaration | undefined): boolean => {
return isTslSegment(node) && node.visibility === 'internal';
export const isPackagePrivate = (node: TslDeclaration | undefined): boolean => {
return isTslSegment(node) && (node.visibility?.isPackageprivate ?? false);
};

export namespace Argument {
Expand Down
5 changes: 1 addition & 4 deletions packages/ttsl-lang/src/language/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ export { createSafeDsServices } from './safe-ds-module.js';
export { startLanguageServer } from './main.js';

// Language Metadata
export { SafeDsLanguageMetaData } from './generated/module.js';
export { TTSLLanguageMetaData } from './generated/module.js';

// AST
export * as ast from './generated/ast.js';
export * from './helpers/nodeProperties.js';

// Location
export { locationToString, positionToString, rangeToString } from '../helpers/locations.js';

// Messages
export * as messages from './runner/messages.js';
281 changes: 0 additions & 281 deletions packages/ttsl-lang/src/language/runner/messages.ts

This file was deleted.

Loading

0 comments on commit c6e0bdf

Please sign in to comment.