소스 검색

Merge 92fda59cbc into 8b5b49eb19

pull/362/merge
Dappster 3 주 전
committed by GitHub
부모
커밋
e9a9f16c92
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일14개의 추가작업 그리고 6개의 파일을 삭제
  1. +14
    -6
      grammar.js

+ 14
- 6
grammar.js 파일 보기

@ -930,12 +930,20 @@ module.exports = grammar(C, {
if_statement: $ => prec.right(seq(
'if',
optional('constexpr'),
field('condition', $.condition_clause),
field('consequence', $.statement),
optional(field('alternative', $.else_clause)),
)),
choice(
seq(
optional('constexpr'),
field('condition', $.condition_clause),
field('consequence', $.statement),
),
seq(
optional('!'),
'consteval',
field('consequence', $.compound_statement),
),
),
optional(field('alternative', $.else_clause)),
)),
// Using prec(1) instead of prec.dynamic(1) causes issues with the
// range loop's declaration specifiers if `int` is passed in, it'll
// always prefer the standard for loop and give us a parse error.

불러오는 중...
취소
저장