Skip to content

rasputino/PostgreSQL-VS-Grammar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL VS Grammar

Textmate grammar in Visual Studio

This is a project cloned from the Textmate Grammar example of Mads Kristensen that demonstrates how to ship Textmate grammars inside Visual Studio extensions. But modified to support PostgreSQL grammar.

The grammar syntax comes from https://github.com/tkopets/sublime-postgresql-syntax

Motivation

Currently, .sql files are highlighted using MSSQL syntax by default. This can sometimes lead to incorrect syntax highlighting, especially when working with PostgreSQL-specific syntax.

For example:

Example 1

Example 2

To avoid this, I often rename my SQL files to use the .psql extension. However, doing so causes the syntax highlighting to be lost entirely.

Solution

And this is why this project exists.

Example 3

Example 4

About

PostgreSQL VS Grammar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%