Skip to content

Commit d29a17e

Browse files
committed
Release 0.7.7
0 parents  commit d29a17e

23 files changed

+2112
-0
lines changed

LSP-leo.sublime-commands

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"caption": "Preferences: LSP-leo Settings",
4+
"command": "edit_settings",
5+
"args": {
6+
"base_file": "${packages}/LSP-leo/LSP-leo.sublime-settings",
7+
"default": "// Settings in here override those in \"LSP-leo/LSP-leo.sublime-settings\"\n\n{\n\t$0\n}\n"
8+
}
9+
}
10+
]

LSP-leo.sublime-settings

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
// Open "Preferences: LSP Utils Settings" from the Command Palette to customize the Node runtime.
3+
"command": ["${node_bin}", "${server_path}", "--stdio"],
4+
"selector": "source.leo | source.in | source.out | source.state | source.toml",
5+
"languages": [
6+
{
7+
"languageId": "leo",
8+
"scopes": ["source.leo"],
9+
"syntaxes": ["Packages/LSP-leo/leo.tmLanguage"]
10+
},
11+
{
12+
"languageId": "leoInput",
13+
"scopes": ["source.in", "source.out", "source.state"],
14+
"syntaxes": ["Packages/LSP-leo/leoInput.tmLanguage"]
15+
},
16+
{
17+
"languageId": "leoToml",
18+
"scopes": ["source.toml"],
19+
"syntaxes": ["Packages/LSP-leo/leoToml.tmLanguage"]
20+
}
21+
],
22+
"initializationOptions": {},
23+
"settings": {},
24+
"file_watcher": {
25+
"pattern": "{**/*.leo,**/*.in,**/*.state,**/*.out,**/*.toml}",
26+
"events": ["create", "change", "delete"],
27+
"ignores": []
28+
}
29+
}

LSP.sublime-settings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Settings in here override those in "LSP/LSP.sublime-settings"
2+
{
3+
"log_debug": true,
4+
"log_server": ["panel"]
5+
}

Main.sublime-menu

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[
2+
{
3+
"id": "preferences",
4+
"children": [
5+
{
6+
"caption": "Package Settings",
7+
"mnemonic": "P",
8+
"id": "package-settings",
9+
"children": [
10+
{
11+
"caption": "LSP",
12+
"id": "lsp-settings",
13+
"children": [
14+
{
15+
"caption": "Servers",
16+
"id": "lsp-servers",
17+
"children": [
18+
{
19+
"caption": "LSP-leo",
20+
"command": "edit_settings",
21+
"args": {
22+
"base_file": "${packages}/LSP-leo/LSP-leo.sublime-settings",
23+
"default": "// Settings in here override those in \"LSP-leo/LSP-leo.sublime-settings\"\n\n{\n\t$0\n}\n"
24+
}
25+
}
26+
]
27+
}
28+
]
29+
}
30+
]
31+
}
32+
]
33+
}
34+
]

Preferences.sublime-settings

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"color_scheme": "Packages/LSP-leo/leo.sublime-color-scheme",
3+
"highlight_line": true,
4+
"font_face": "Menlo",
5+
"font_options": ["gray_antialias", "subpixel_antialias"]
6+
}

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# LSP-leo
2+
3+
Leo support for Sublime's LSP plugin provided through leo-language-server.
4+
Full-featured IDE with the compiler, package manager, and other helpful tools is here [Aleo Studio](https://aleo.studio/).
5+
6+
### Installation
7+
8+
- Install [LSP](https://packagecontrol.io/packages/LSP) and [LSP-leo](https://packagecontrol.io/packages/LSP-leo) from Package Control.
9+
- Restart Sublime.
10+
11+
### Configuration
12+
13+
There are some ways to configure the package and the language server.
14+
15+
- From `Preferences > Package Settings > LSP > Servers > LSP-leo`
16+
- From the command palette `Preferences: LSP-leo Settings`

dependencies.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*": {
3+
"*": ["lsp_utils", "sublime_lib"]
4+
}
5+
}
159 KB
Binary file not shown.

language-server/package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

language-server/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "leo-language-sublime-package",
3+
"private": "true",
4+
"version": "0.7.7",
5+
"publisher": "aleohq",
6+
"license": "GPL-3.0",
7+
"description": "A leo language features package"
8+
}

language-server/server.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

language-server/server.js.LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*! *****************************************************************************
2+
Copyright (C) Microsoft. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABLITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
16+
/**
17+
* @license
18+
* Lodash <https://lodash.com/>
19+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
20+
* Released under MIT license <https://lodash.com/license>
21+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
22+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
23+
*/

language-server/tree-sitter-leo.wasm

59.3 KB
Binary file not shown.
21.3 KB
Binary file not shown.

language-server/tree-sitter.wasm

167 KB
Binary file not shown.

leo.sublime-color-scheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"Aleo Theme","author":"AleoHQ","globals":{"background":"#12141D","foreground":"#ffffff","caret":"#ffffff","block_caret":"#ffffff","line_highlight":"#ffffff21","misspelling":"#f48771","fold_marker":"#18a3ff","accent":"#18a3ff","gutter":"#12141d","gutter_foreground":"#858585","line_diff_added":"#9bb95533","line_diff_modified":"#e2c08d","line_diff_deleted":"#ff000033","selection":"#264f78","inactive_selection":"#37373d","inactive_selection_foreground":"#ffffff","highlight":"#ea5c0055","find_highlight":"#ea5c0055","find_highlight_foreground":"#18a3ff","guide":"#404040","active_guide":"#fafafa","stack_guide":"#e3e3e3cc","brackets_foreground":"#264f78","tags_foreground":"#264f78","shadow":"#0000005c"},"variables":{"black":"#000000","white":"#e5e5e5","red":"#cd3131","green":"#0dbc79","yellow":"#e5e510","orange":"#e5e510","blue":"#2472c8","magenta":"#bc3fbc","cyan":"#11a8cd"},"rules":[{"name":"Comment","foreground":"#878787","font_style":0,"scope":"comment.line.double-slash.leo, comment.line.documentation.leo, comment.block.documentation.leo, comment.block.leo, comment.line.leo.leoInput, comment.block.leo.leoInput, comment.leo.leoInput"},{"name":"Built-in/core type","foreground":"#86E101","font_style":0,"scope":"storage.type.core.leo, section.definition.type.leo.leoInput, section.definition.expression.value.address.typed.leo.leoInput, section.definition.expression.value.group.tuple.leo.leoInput, storage.type.core.leo.hover"},{"name":"Double-quote string literal","foreground":"#ECE76B","font_style":0,"scope":"string.quoted.double.leo, string.quoted.single.leo, section.definition.expression.string.leo.leoInput, section.definition.expression.char.leo.leoInput, path.import.leo.hover"},{"name":"Control keyword","foreground":"#FF4789","font_style":0,"scope":"keyword.control.leo, keyword.control.import.leo, keyword.control.import.leo.hover, access.name.circuit.leo.hover, name.circuit.leo.hover"},{"name":"Storage types","foreground":"#FF4789","font_style":0,"scope":"storage.type.function.leo, storage.type.circuit.leo, storage.type.let.leo, storage.type.const.leo, storage.type.function.leo.hover, storage.type.circuit.leo.hover, storage.type.let.leo.hover, storage.type.const.leo.hover"},{"name":"Self variable","foreground":"#FF4789","font_style":0,"scope":"variable.language.leo"},{"name":"Storage modifier","foreground":"#FF4789","font_style":0,"scope":"storage.modifier.static.leo, storage.modifier.mut.leo"},{"name":"Support variables","foreground":"#FF4789","font_style":0,"scope":"support.variable.test.leo"},{"name":"Integer literal (decimal)","foreground":"#3FD1FF","font_style":0,"scope":"constant.numeric.integer.decimal.leo, constant.numeric.integer.decimal.leo.hover"},{"name":"Built-in/core assign","foreground":"#3FD1FF","font_style":0,"scope":"storage.type.assign.leo, section.definition.type.array.demension.leo.leoInput, section.definition.expression.value.leo.leoInput, storage.type.assign.leo.hover"},{"name":"Boolean constant","foreground":"#3FD1FF","font_style":0,"scope":"constant.language.boolean.leo, constant.language.boolean.leo.hover"},{"name":"Circuit Attribute","foreground":"#D781FF","font_style":0,"scope":"entity.other.attribute-name"},{"name":"Import keywords","foreground":"#FF4789","font_style":0,"scope":"syntax.all.import.leo, keyword.operator.as.leo"},{"name":"Circuit names","foreground":"#FF4789","font_style":0,"scope":"circuit.name.static.call"},{"name":"Test Context Annotation","foreground":"#f1fa8c","font_style":0,"scope":"test.context.annotation.leo, test.context.annotation.leo.hover"},{"name":"Call methods","foreground":"#D781FF","font_style":0,"scope":"circuit.method.name.call, function.name.call, entity.name.method.console.leo, call.name.method.leo.hover, access.name.attribute.leo.hover, entity.name.method.console.leo.hover, name.function.leo.hover"},{"name":"White color","foreground":"#FFFFFF","font_style":0,"scope":"meta.name_params.leo.hover"},{"name":"Red color (Server Syntax Coloring)","foreground":"#FF4789","background":"#12151d","font_style":0,"scope":"inline.definition.circuit.name.server.leo, static.call.circuit.name.server.leo, type.circuit.name.server.leo, import.circuit.name.server.leo, known.circuit.name.server.leo"},{"name":"Red color (Server Syntax Coloring)","foreground":"#FF4789","background":"#fffffe21","font_style":0,"scope":"inline.definition.circuit.name.highlight.server.leo, static.call.circuit.name.highlight.server.leo, type.circuit.name.highlight.server.leo, import.circuit.name.highlight.server.leo, known.circuit.name.highlight.server.leo"},{"name":"Purple color (Server Syntax Coloring)","foreground":"#D781FF","background":"#12151d","font_style":0,"scope":"file.definition.function.name.server.leo, circuit.method.name.static.call.server.leo, import.function.name.server.leo, function.name.call.server.leo"},{"name":"Purple color (Server Syntax Coloring)","foreground":"#D781FF","background":"#fffffe21","font_style":0,"scope":"file.definition.function.name.highlight.server.leo, circuit.method.name.static.call.highlight.server.leo, import.function.name.highlight.server.leo, function.name.call.highlight.server.leo"},{"name":"White color (Server Syntax Coloring)","foreground":"#FFFFFF","background":"#12151d","font_style":0,"scope":"file.definition.circuit.name.server.leo"},{"name":"White color (Server Syntax Coloring)","foreground":"#FFFFFF","background":"#fffffe21","font_style":0,"scope":"file.definition.circuit.name.highlight.server.leo"},{"foreground":"#9cdcfe","font_style":0,"scope":"support.type.property-name"},{"foreground":"#ce9178","font_style":0,"scope":"string"},{"foreground":"#569cd6","font_style":0,"scope":"constant.language"},{"foreground":"#6A9955","font_style":0,"scope":"comment"},{"foreground":"#569cd6","font_style":0,"scope":"keyword"},{"foreground":"#f44747","font_style":0,"scope":"invalid"},{"foreground":"#b5cea8","font_style":0,"scope":"constant.numeric, entity.name.operator.custom-literal.number, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent"},{"font_style":"underline","scope":"markup.underline"},{"foreground":"#569cd6","font_style":"bold","scope":"markup.bold"},{"foreground":"#569cd6","font_style":"bold","scope":"markup.heading"},{"foreground":"#6A9955","font_style":0,"scope":"punctuation.definition.quote.begin.markdown"},{"foreground":"#6796e6","font_style":0,"scope":"punctuation.definition.list.begin.markdown"},{"foreground":"#ce9178","font_style":0,"scope":"markup.inline.raw"},{"font_style":"italic","scope":"markup.italic"}]}

leo.sublime-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extensions": ["leo", "in", "out", "state", "toml"]
3+
}

0 commit comments

Comments
 (0)