Update Keywords list to include most tokens (#244)

- Fixes https://github.com/Microsoft/vscode-mssql/issues/705
- Updated the keyword list to include most common keyword ranges and added test to cover top 10 missing keywords
- Fixed a bug in TestUtilities.cs where text range was not defined correctly.
This commit is contained in:
Kevin Cunnane
2017-02-21 18:21:59 -08:00
committed by GitHub
parent ef012a4f98
commit ccd2c9caa9
7 changed files with 208 additions and 29 deletions

View File

@@ -0,0 +1,41 @@
-- Case: common type keywords
cReaTe tAbLe [SimpleTable]
(
-- this is a comment before document
[DocumentID] INT iDentIty (1, 1) NOT NULL,
-- this is a comment before Title
[Title] NVARCHAR (50) NOT NULL,
-- this is a comment before FileName
[FileName] NVARCHAR (400) NOT NULL,
-- this is a comment before FileExtension
[FileExtension] nvarchar(8)
);
GO
CREATE vIEw v1 aS select * from [SimpleTable]
GO
CREATE pRoceduRe p1 aS
bEgIn
select * from [SimpleTable]
eNd
GO
iNsert iNto t dEfault vAlues
GO
GO
iNsert oPenQUERY (OracleSvr, 'SELECT name FROM joe.titles')
VALUES ('NewTitle');
GO
INSERT INTO myTable(FileName, FileType, Document)
SELECT 'Text1.txt' AS FileName,
'.txt' AS FileType,
* FROM openROWSET(bUlK N'C:\Text1.txt', siNGLE_BLOB) AS Document;
GO
sELECT *
FROM openXML (@idoc, '/ROOT/Customers')
exEC sp_xml_removedocument @idoc;