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

fixes #80, #81 #83

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.vsix
todo.*
out
node_modules
.history
.history
.vscode
196 changes: 196 additions & 0 deletions main/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions main/src/lib/regEx/RegExParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export default class RegExpParser {

private static regComment = `(?:\\/\\*[\\s\\S]*?\\*\\/)|(?:--.*)`;
private static regCommentDoc = `(?:\\/\\*(\\*)?[\\s\\S]*?\\*\\/)|(?:--.*)`;
private static regQuote = `(?:["][^"]*["]|['][^']*['])`; //`(?:["'][^"']*["'])`;
private static regQuote = `(?:["][^"]*["]|['][^']*[']|q'\\([\\s\\S]*?\\)'|q'\\[[\\s\\S]*?\\]'|q'\\{[\\s\\S]*?\\}'|q'\\<[\\s\\S]*?\\>'|q'\\|[\\s\\S]*?\\|'|q'![\\s\\S]*?!'|q'#[\\s\\S]*?#'|q'\`[\\s\\S]*?\`'|q'\\^[\\s\\S]*?\\^'|q'\\~[\\s\\S]*?\\~')`; //`(?:["'][^"']*["'])`;
private static regCommentInside = `(?:\\/\\*[\\s\\S]*?\\*\\/\\s*|--.*\\s+)*\\s*`; // a bit slower !
private static regJumpDoc = `(\\/\\*\\*[\\s\\S]*?\\*\\/)`;

private static REG_WORD = '[\\w\\$#]';
private static REG_WORDTYPE = '[\\w\\$#%\\.]'; // param type on the form xyztable.xyzfield%type
private static regSymbolsCreate = `(?:(create)(?:\\s+or\\s+replace)?\\s*(?:(?:no\\s+)?force|global\\s+temporary)?\\s*)`;
private static regSymbolsCreate = `(?:(create)(?:\\s+or\\s+replace)?\\s*(?:(?:no\\s+)?force|global\\s+temporary|(?:non)?editionable)?\\s*)`;
private static regSymbols = `(?:\\b(function|procedure|package|trigger|view|table)\\b(?:\\s+(body))?)\\s+`;
private static regSymbolsName = `(?:\"?${RegExpParser.REG_WORD}+\"?\\.)?\"?(${RegExpParser.REG_WORD}+)\"?`;

Expand Down
Loading