本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
isprogram
/
tree-sitter-c
镜像来自
https://github.com/tree-sitter/tree-sitter-c
關注
1
收藏
0
複製
0
程式碼
問題
0
Projects
0
版本發佈
79
Wiki
活動
瀏覽代碼
Require a line break after an unknown preprocessor directive
pull/8/head
Max Brunsfeld
8 年之前
父節點
e6c28cafb3
當前提交
3a97441df7
共有
3 個檔案被更改
,包括
54074 行新增
和
53705 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
文件差異過大導致無法顯示
查看文件
Write
Preview
Loading…
取消
儲存