使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
tree-sitter-c
镜像自地址
https://github.com/tree-sitter/tree-sitter-c
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
79
百科
动态
浏览代码
Require a line break after an unknown preprocessor directive
pull/8/head
Max Brunsfeld
8 年前
父节点
e6c28cafb3
当前提交
3a97441df7
共有
3 个文件被更改
,包括
54074 次插入
和
53705 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-1
grammar.js
+23
-2
src/grammar.json
+54049
-53702
src/parser.c
+ 2
- 1
grammar.js
查看文件
@ -104,7 +104,8 @@ module.exports = grammar({
preproc_call
:
$
=>
seq
(
$
.
preproc_directive
,
$
.
preproc_arg
optional
(
seq
(
/[ \t]+/
,
$
.
preproc_arg
)
)
,
'\n'
)
,
preproc_if
:
$
=>
seq
(
+ 23
- 2
src/grammar.json
查看文件
@ -292,8 +292,29 @@
"name"
:
"preproc_directive"
}
,
{
"type"
:
"SYMBOL"
,
"name"
:
"preproc_arg"
"type"
:
"CHOICE"
,
"members"
:
[
{
"type"
:
"SEQ"
,
"members"
:
[
{
"type"
:
"PATTERN"
,
"value"
:
"[ \\t]+"
}
,
{
"type"
:
"SYMBOL"
,
"name"
:
"preproc_arg"
}
]
}
,
{
"type"
:
"BLANK"
}
]
}
,
{
"type"
:
"STRING"
,
"value"
:
"\n"
}
]
}
,
+ 54049
- 53702
src/parser.c
文件差异内容过多而无法显示
查看文件
撰写
预览
正在加载...
取消
保存