Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nuget Config, Bazel and EdgeQL Support, Fix Output Formatter #999

Merged
merged 13 commits into from
May 24, 2023
Prev Previous commit
Next Next commit
fix edgedb
  • Loading branch information
Embers-of-the-Fire committed May 21, 2023
commit a56fe9306aae1896f2f9b16b3251e719e493ce03
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@
"name": "EdgeQL",
"line_comment": ["#"],
"quotes": [["'", "'"], ["\\\"", "\\\""], ["$", "$"]],
"extensions": ["edgeql"]
},
"ESDL": {
"name": "EdgeDB Schema Definition",
"line_comment": ["#"],
"quotes": [["'", "'"], ["\\\"", "\\\""]],
"extensions": ["esdl"]
},
"Edn": {
Expand Down
28 changes: 28 additions & 0 deletions tests/data/edgeql.edgeql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 28 lines 21 code 3 comments 4 blanks

select User {
name,
friends: {
name
},
has_i := .friends.name ilike '%i%',
has_o := .friends.name ilike '%o%',
} filter .has_i or .has_o;

select <User>{} ?? User {name};

# update the user with the name 'Alice Smith'
with module example
update User
filter .name = 'Alice Smith'
set {
name := 'Alice J. Smith'
};

# update all users whose name is 'Bob'
with module example
update User
filter .name like 'Bob%'
set {
name := User.name ++ '*'
};
21 changes: 0 additions & 21 deletions tests/data/edgeql.esdl

This file was deleted.

20 changes: 20 additions & 0 deletions tests/data/esdl.esdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 20 lines 13 code 4 comments 3 blanks

# no module block
type default::Movie {
required property title -> str;
# the year of release
property year -> int64;
required link director -> default::Person;
required multi link actors -> default::Person;
}

type default::Person {
required property first_name -> str;
required property last_name -> str;
}

abstract link friends_base {
# declare a specific title for the link
annotation title := 'Close contacts';
}