소스 검색

fix: swap precedences of assignnment and conditional expressions

`a *= b != c ? d : e;` is parsed incorrectly as a result
pull/156/head
Amaan Qureshi 3 년 전
부모
커밋
f3559c6cb4
No known key found for this signature in database GPG 키 ID: E67890ADC4227273
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      grammar.js

+ 2
- 2
grammar.js 파일 보기

@ -12,8 +12,8 @@
const PREC = {
PAREN_DECLARATOR: -10,
ASSIGNMENT: -1,
CONDITIONAL: -2,
ASSIGNMENT: -2,
CONDITIONAL: -1,
DEFAULT: 0,
LOGICAL_OR: 1,
LOGICAL_AND: 2,

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