You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C preprocessor interprets both // and /* */ style comments and replaces them with a single whitespace according to C99. It seems like token might the root cause of the issue by preventing tree-sitter from applying extras (which normally handles comments).
This would also be the cause of #55 and #44, also this issue in tree-sitter-cpp.
The text was updated successfully, but these errors were encountered:
#ifndefPI_TIMER_H#definePI_TIMER_H// System Timer defined in BCM2837 section 12 (page 172)// For pi < 2 base = 0x7E003000 For pi 2&3 base = 0x3F003000#defineSYSTEM_TIMER_BASE 0x3F003000 // Physical address (processor view)
#defineCS_REG (SYSTEM_TIMER_BASE + 0x0) // Control Status register
I found this while trying emacs-tree-sitter. Its debug output:
The root of the problem seems to be
preproc_arg
:The C preprocessor interprets both
//
and/* */
style comments and replaces them with a single whitespace according to C99. It seems liketoken
might the root cause of the issue by preventing tree-sitter from applyingextras
(which normally handles comments).This would also be the cause of #55 and #44, also this issue in tree-sitter-cpp.
The text was updated successfully, but these errors were encountered: