Add support for EdgeQL languages (#5780)
* Add support for edgeql languages https://www.edgedb.com/docs/edgeql/index * Correct order * Fix order --------- Co-authored-by: Colin Seymour <colin@github.com>
This commit is contained in:
Родитель
b145c71c5e
Коммит
4207d7e652
|
@ -437,6 +437,9 @@
|
|||
[submodule "vendor/grammars/ecl-tmLanguage"]
|
||||
path = vendor/grammars/ecl-tmLanguage
|
||||
url = https://github.com/hpcc-systems/ecl-tmLanguage
|
||||
[submodule "vendor/grammars/edgedb-editor-plugin"]
|
||||
path = vendor/grammars/edgedb-editor-plugin
|
||||
url = https://github.com/edgedb/edgedb-editor-plugin.git
|
||||
[submodule "vendor/grammars/eiffel.tmbundle"]
|
||||
path = vendor/grammars/eiffel.tmbundle
|
||||
url = https://github.com/textmate/eiffel.tmbundle
|
||||
|
|
|
@ -354,6 +354,8 @@ vendor/grammars/ec.tmbundle:
|
|||
- source.c.ec
|
||||
vendor/grammars/ecl-tmLanguage:
|
||||
- source.ecl
|
||||
vendor/grammars/edgedb-editor-plugin:
|
||||
- source.edgeql
|
||||
vendor/grammars/eiffel.tmbundle:
|
||||
- source.eiffel
|
||||
vendor/grammars/ejs-tmbundle:
|
||||
|
|
|
@ -1743,6 +1743,17 @@ Ecmarkup:
|
|||
aliases:
|
||||
- ecmarkdown
|
||||
language_id: 844766630
|
||||
EdgeQL:
|
||||
type: programming
|
||||
color: "#31A7FF"
|
||||
aliases:
|
||||
- esdl
|
||||
extensions:
|
||||
- ".edgeql"
|
||||
- ".esdl"
|
||||
ace_mode: text
|
||||
tm_scope: source.edgeql
|
||||
language_id: 925235833
|
||||
EditorConfig:
|
||||
type: data
|
||||
color: "#fff1f2"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
module default {
|
||||
type Task {
|
||||
required property text -> str;
|
||||
required property completed -> bool{
|
||||
default := false;
|
||||
};
|
||||
}
|
||||
};
|
|
@ -0,0 +1,12 @@
|
|||
CREATE MIGRATION m146naaaow4uwgbxpnjq5hyizixicxvg2ccpta24pxebzfn7xeppna
|
||||
ONTO initial
|
||||
{
|
||||
CREATE EXTENSION edgeql_http VERSION '1.0';
|
||||
CREATE EXTENSION graphql VERSION '1.0';
|
||||
CREATE TYPE default::Task {
|
||||
CREATE REQUIRED PROPERTY completed -> std::bool {
|
||||
SET default := false;
|
||||
};
|
||||
CREATE REQUIRED PROPERTY text -> std::str;
|
||||
};
|
||||
};
|
|
@ -24,6 +24,7 @@ class TestLanguage < Minitest::Test
|
|||
assert_equal Language['Common Lisp'], Language.find_by_alias('lisp')
|
||||
assert_equal Language['Darcs Patch'], Language.find_by_alias('dpatch')
|
||||
assert_equal Language['Dart'], Language.find_by_alias('dart')
|
||||
assert_equal Language['EdgeQL'], Language.find_by_alias('esdl')
|
||||
assert_equal Language['Emacs Lisp'], Language.find_by_alias('elisp')
|
||||
assert_equal Language['Emacs Lisp'], Language.find_by_alias('emacs')
|
||||
assert_equal Language['Emacs Lisp'], Language.find_by_alias('emacs-lisp')
|
||||
|
|
|
@ -152,6 +152,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
|
|||
- **Easybuild:** [MagicStack/MagicPython](https://github.com/MagicStack/MagicPython)
|
||||
- **Ecere Projects:** [Nixinova/NovaGrammars](https://github.com/Nixinova/NovaGrammars)
|
||||
- **Ecmarkup:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc)
|
||||
- **EdgeQL:** [edgedb/edgedb-editor-plugin](https://github.com/edgedb/edgedb-editor-plugin)
|
||||
- **EditorConfig:** [sindresorhus/atom-editorconfig](https://github.com/sindresorhus/atom-editorconfig)
|
||||
- **Edje Data Collection:** [textmate/c.tmbundle](https://github.com/textmate/c.tmbundle)
|
||||
- **Eiffel:** [textmate/eiffel.tmbundle](https://github.com/textmate/eiffel.tmbundle)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 56312c127054a627404ed89316e5f642f24e8586
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
name: edgedb-editor-plugin
|
||||
version: 56312c127054a627404ed89316e5f642f24e8586
|
||||
type: git_submodule
|
||||
homepage: https://github.com/edgedb/edgedb-editor-plugin.git
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE
|
||||
text: |
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2015-present MagicStack Inc. http://magic.io
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
notices: []
|
Загрузка…
Ссылка в новой задаче