Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IDE-Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DP-Group 14
IDE-Plugin
Commits
ed2f3a8a
Commit
ed2f3a8a
authored
4 years ago
by
Stekelenburg, A.V. (Alexander, Student )
Browse files
Options
Downloads
Patches
Plain Diff
Update grammar
parent
50755291
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+23
-13
23 additions, 13 deletions
package.json
src/extension.ts
+12
-11
12 additions, 11 deletions
src/extension.ts
syntaxes/modest.tmLanguage.json
+5
-19
5 additions, 19 deletions
syntaxes/modest.tmLanguage.json
with
40 additions
and
43 deletions
package.json
+
23
−
13
View file @
ed2f3a8a
...
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
src/extension.ts
+
12
−
11
View file @
ed2f3a8a
...
...
@@ -22,7 +22,7 @@ let client: LanguageClient;
export
function
activate
(
context
:
ExtensionContext
)
{
// The server is implemented in node
let
serverExe
=
"
D
:
\\
Desktop
\\
design
project
\\
mod
est-
toolset
\\
Binaries
\\
Release
\\
win-x64
\\
Modest.LanguageServer.exe
"
;
let
serverExe
=
"
C
:
\\
Users
\\
anoni
\\
Desktop
\\
University
project
s
\\
mod
ule 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
...
...
This diff is collapsed.
Click to expand it.
syntaxes/modest.tmLanguage.json
+
5
−
19
View file @
ed2f3a8a
...
...
@@ -3,30 +3,16 @@
"name"
:
"Modest"
,
"patterns"
:
[
{
"include"
:
"#keywords"
},
{
"include"
:
"#strings"
"include"
:
"#comments"
}
],
"repository"
:
{
"
keyword
s"
:
{
"
comment
s"
:
{
"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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment