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

Syntax highlighting in SQL extension #21

Open
aeschli opened this issue Dec 12, 2016 · 0 comments
Open

Syntax highlighting in SQL extension #21

aeschli opened this issue Dec 12, 2016 · 0 comments

Comments

@aeschli
Copy link

aeschli commented Dec 12, 2016

From @bruce3 on December 11, 2016 8:43

  • VSCode Version:
    Commit 7ba55c5860b152d999dda59393ca3ebeb1b5c85f
    Date 2016-11-21T22:14:18.217Z
    Shell 1.3.8
    Renderer 52.0.2743.82
    Node 6.5.0
  • OS Version:
    Ubuntu 16.04

Steps to Reproduce:

Copy the following text to vscode and set language mode = SQL.
Then cast your eyes down the list for some examples.

-- Control Flow
-- highlighted
IF
BEGIN
END
THROW
TRY
CATCH
-- not highlighted
ELSE
RETURN
WAITFOR
WHILE
GOTO

EXEC          -- highlighted
EXECUTE   -- not highlighted
COLLATE    -- not highlighted

-- DDL
ON DELETE CASCADE
ON UPDATE CASCADE,		--  second CASCADE not highlighted
DEFAULT                                 -- not highlighted
NOT NULL

--	Statements
BEGIN TRANSACTION
BEGIN DISTRIBUTED TRANSACTION    -- DISTRIBUTED not highlighted
SAVE TRANSACTION				  -- SAVE not highlighted			
COMMIT TRANSACTION
COMMIT WORK
ROLLBACK TRANSACTION
ROLLBACK WORK

--	Functions
CONVERT
CAST					--	CAST is blue and CONVERT is yellow?

-- Date and time functions
CURRENT_TIMESTAMP     -- CURRENT_TIMESTAMP is yellow, @@DATEFIRST blue others nothing?
DATEDIFF
@@DATEFIRST
DATENAME
SYSDATETIME

Copied from original issue: microsoft/vscode#17039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant