Skip to content
Snippets Groups Projects
Commit ed2f3a8a authored by Stekelenburg, A.V. (Alexander, Student )'s avatar Stekelenburg, A.V. (Alexander, Student )
Browse files

Update grammar

parent 50755291
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,9 @@
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Programming Languages"
],
"categories": [
"Programming Languages"
],
"contributes": {
"commands": [
{
......@@ -16,16 +16,26 @@
"title": "Hello World"
}
],
"languages": [{
"id": "modest",
"extensions": [ ".modest", ".Modest" ],
"aliases": [ "Modest", "modest" ]
}],
"grammars": [{
"language": "modest",
"scopeName": "",
"path": "./syntaxes/modest.tmLanguage.json"
}]
"languages": [
{
"id": "modest",
"extensions": [
".modest",
".Modest"
],
"aliases": [
"Modest",
"modest"
]
}
],
"grammars": [
{
"language": "modest",
"scopeName": "source.modest",
"path": "./syntaxes/modest.tmLanguage.json"
}
]
},
"activationEvents": [
"onCommand:extension.helloWorld",
......
......@@ -22,7 +22,7 @@ let client: LanguageClient;
export function activate(context: ExtensionContext) {
// The server is implemented in node
let serverExe = "D:\\Desktop\\designproject\\modest-toolset\\Binaries\\Release\\win-x64\\Modest.LanguageServer.exe";
let serverExe = "C:\\Users\\anoni\\Desktop\\University projects\\module 11\\toolset\\Binaries\\Release\\win-x64\\Modest.LanguageServer.exe";
// If the extension is launched in debug mode then the debug server options are used
// Otherwise the run options are used
......@@ -30,12 +30,12 @@ export function activate(context: ExtensionContext) {
// run: { command: serverExe, args: ['-lsp', '-d'] },
run: {
command: serverExe,
transport: TransportKind.pipe,
transport: TransportKind.stdio,
},
// debug: { command: serverExe, args: ['-lsp', '-d'] }
debug: {
command: serverExe,
transport: TransportKind.pipe,
transport: TransportKind.stdio,
runtime: "",
},
};
......@@ -47,13 +47,13 @@ export function activate(context: ExtensionContext) {
{
pattern: "**/*.modest",
},
],
],
progressOnInitialization: true,
synchronize: {
//synchronize: {
// Synchronize the setting section 'languageServerExample' to the server
configurationSection: "languageServerExample",
fileEvents: workspace.createFileSystemWatcher("**/*.modest"),
},
// configurationSection: "languageServerExample",
// fileEvents: workspace.createFileSystemWatcher("**/*.modest"),
//},
};
let disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
......@@ -78,10 +78,11 @@ export function activate(context: ExtensionContext) {
"Modest Extension",
serverOptions,
clientOptions);
client.registerProposedFeatures();
client.registerProposedFeatures();
client.registerProposedFeatures();
client.trace = Trace.Verbose;
disposable = client.start();
disposable = client.start();
console.log(process.cwd())
// Push the disposable to the context's subscriptions so that the
// client can be deactivated on extension deactivation
......
......@@ -3,30 +3,16 @@
"name": "Modest",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
"include": "#comments"
}
],
"repository": {
"keywords": {
"comments": {
"patterns": [{
"name": "keyword.control.modest",
"match": "\\b(if|while|for|return)\\b"
"name": "comment.line.double-slash",
"match": "//.*$"
}]
},
"strings": {
"name": "string.quoted.double.modest",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.modest",
"match": "\\\\."
}
]
}
},
"scopeName": ""
"scopeName": "source.modest"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment