Git Product home page Git Product logo

atom-language-gsql's Introduction

Language support for GSQL® in Atom


Adds syntax highlighting and snippets to GSQL® files in Atom.

See the official site for more information on the language.

Currently contains the following GSQL® specific syntax.

  • DDL Statements
  • DML Statements
  • Types and Tuple Definition
  • Declaration Statements
  • Output Statements
  • Accumulator Assignment Statements
  • Exception Statements
  • Control Flow StatementS
  • Operators
  • Built-in Functions

Contributing

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.

atom-language-gsql's People

Contributors

alejandropoveda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

szilardbaranytg

atom-language-gsql's Issues

Multi-line comment support

'comments':
'patterns': [
{
'begin': '(^[ \\t]+)?(?=#)'
'beginCaptures':
'1':
'name': 'punctuation.whitespace.comment.leading.gsql'
'end': '(?!\\G)'
'patterns': [
{
'begin': '#'
'beginCaptures':
'0':
'name': 'punctuation.definition.comment.gsql'
'end': '\\n'
'name': 'comment.line.number-sign.gsql'
}
]
}
{
'begin': '(^[ \\t]+)?(?=//)'
'beginCaptures':
'1':
'name': 'punctuation.whitespace.comment.leading.gsql'
'end': '(?!\\G)'
'patterns': [
{
'begin': '//'
'beginCaptures':
'0':
'name': 'punctuation.definition.comment.gsql'
'end': '\\n'
'name': 'comment.line.double-slash.gsql'
}
]
}
]

Hi! Would you mind adding multi-line comment support please? :)
I.e., GSQL supports /* ... */ style comments...

GSQL Non-Reserved Keywords

Hey Alejandro!
Me again... :)

I've noticed that the plugin changes the case of GSQL keywords to capital (in addition to giving them a distinctive color).
That's really nice, but there's a problem with the GSQL Non-Reserved Keywords

As the manual says: "users may use them for user-defined identifiers".
And we actually do use "user" as a name of one of our vertices.
So, when I write a GSQL query that refers to these vertices, the case changes, and it breaks the query (vertex types are case sensitive).

I think that it may be better not to apply the logic relevant to "GSQL Reserved Words" on "GSQL Non-Reserved Keywords" .

What do you think?

Thanks for your time!
Denis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.