Skip to content

Commit

Permalink
Fix comments and strings in language_graphql.lua (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
arisjulio authored Feb 9, 2024
1 parent 9d02dca commit 4668165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@
},
{
"description": "Syntax for the [GraphQL](https://graphql.org/) query language, and server-side runtime for executing queries using a type system.",
"version": "0.1",
"version": "0.2",
"path": "plugins/language_graphql.lua",
"id": "language_graphql",
"mod_version": "3",
Expand Down
2 changes: 1 addition & 1 deletion plugins/language_graphql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ syntax.add {
comment = "#",
block_comment = { '"""', '"""' },
patterns = {
{ pattern = { '"', '"', "\\" }, type = "string" },
{ pattern = { '"""', '"""' }, type = "comment" },
{ pattern = "#.*", type = "comment" },
{ pattern = { '"', '"', "\\" }, type = "string" },
{ pattern = "-?%.?%d+", type = "number" },
{ pattern = "%s*[@]%s*[%a_][%w_]*", type = "function" },
{ pattern = "!", type = "operator" },
Expand Down

0 comments on commit 4668165

Please sign in to comment.