Skip to content

Commit

Permalink
eslint ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jan 9, 2024
1 parent f0bd515 commit 009d3d2
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .changeset/clean-spies-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'vscode-graphql': patch
'vscode-graphql-syntax': patch
---

- add ruby syntax support
- add markdown support for js, ts, jsx, tsx, ruby and python
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ working-group/
packages/codemirror-graphql/src/__tests__/schema-kitchen-sink.graphql
CHANGELOG.md
**/CHANGELOG.md
packages/vscode-graphql-syntax/tests/__fixtures__/
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
'changesets/**/*.md',
'**/CHANGELOG.md',
'functions/*',
'packages/vscode-graphql-syntax/tests/__fixtures__/*',
],
overrides: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,42 @@
}
]
},
{
"begin": "(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(ruby|rb)(\\s+[^`~]*)?$)",
"name": "markup.fenced_code.block.rb",
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
"beginCaptures": {
"3": {
"name": "punctuation.definition.markdown"
},
"4": {
"name": "fenced_code.block.language.markdown"
},
"5": {
"name": "fenced_code.block.language.attributes.markdown"
}
},
"endCaptures": {
"3": {
"name": "punctuation.definition.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.rb",
"patterns": [
{
"include": "inline.graphql.rb"
},
{
"include": "source.ruby"
}
]
}
]
},
{
"begin": "(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(scala)(\\s+[^`~]*)?$)",
"name": "markup.fenced_code.block.scala",
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode-graphql-syntax/tests/__fixtures__/test-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
```js
const variable = 1;

graphql`
const query = graphql`
query {
something
something(arg: ${variable})
}
`;
```
Expand Down
11 changes: 11 additions & 0 deletions packages/vscode-graphql-syntax/tests/__fixtures__/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,14 @@ type Example {
GRAPHQL;
?>
```

```ruby
it "Should delimit queries" do
query3 = <<~'GRAPHQL'
{
datasets(q: { idEq: 3 }) { id, daylight }
}
GRAPHQL
end

```

Large diffs are not rendered by default.

0 comments on commit 009d3d2

Please sign in to comment.