fix
This commit is contained in:
parent
05c5b87d04
commit
34af804abb
14
.vscode/launch.json
vendored
Normal file
14
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
// 使用 IntelliSense 了解相关属性。
|
||||
// 悬停以查看现有属性的描述。
|
||||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "启动程序",
|
||||
"program": "${workspaceFolder}/index.js"
|
||||
}
|
||||
]
|
||||
}
|
@ -3934,12 +3934,14 @@ case 1183:
|
||||
var fn = $$[$0-1].chain[$$[$0-1].chain.length - 1].name.toLowerCase();
|
||||
$$[$0-1].lastLoc.type = 'function';
|
||||
$$[$0-1].lastLoc.function = fn;
|
||||
if($$[$0-1].lastLoc.location){
|
||||
$$[$0-1].lastLoc.location = {
|
||||
first_line: $$[$0-1].lastLoc.location.first_line,
|
||||
last_line: $$[$0-1].lastLoc.location.last_line,
|
||||
first_column: $$[$0-1].lastLoc.location.first_column,
|
||||
last_column: $$[$0-1].lastLoc.location.last_column - 1
|
||||
}
|
||||
}
|
||||
if ($$[$0-1].lastLoc !== $$[$0-1].firstLoc) {
|
||||
$$[$0-1].firstLoc.type = 'database';
|
||||
} else {
|
||||
|
10
jison/comment.txt
Normal file
10
jison/comment.txt
Normal file
@ -0,0 +1,10 @@
|
||||
ColumnIdentifier
|
||||
UnsignedValueSpecification #各种非负数字和普通字符串常量bool值
|
||||
UnsignedLiteral #各种非负数字和普通字符串常量bool值
|
||||
ExactNumericLiteral #非负数字和小数
|
||||
ApproximateNumericLiteral #带有E的非负数字
|
||||
GeneralLiteral #普通字符串常量/bool值
|
||||
RegularIdentifier #常规标识符
|
||||
RegularOrBacktickedIdentifier #标识符
|
||||
NonReservedKeyword #非保留关键字
|
||||
ColumnIdentifier #标识符和各种对象数组写法
|
@ -2415,12 +2415,14 @@ NonParenthesizedValueExpressionPrimary
|
||||
var fn = $1.chain[$1.chain.length - 1].name.toLowerCase();
|
||||
$1.lastLoc.type = 'function';
|
||||
$1.lastLoc.function = fn;
|
||||
if($1.lastLoc.location){
|
||||
$1.lastLoc.location = {
|
||||
first_line: $1.lastLoc.location.first_line,
|
||||
last_line: $1.lastLoc.location.last_line,
|
||||
first_column: $1.lastLoc.location.first_column,
|
||||
last_column: $1.lastLoc.location.last_column - 1
|
||||
}
|
||||
}
|
||||
if ($1.lastLoc !== $1.firstLoc) {
|
||||
$1.firstLoc.type = 'database';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user