emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 57cf715 4/5: Add types to some no-type tokes in js.


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 57cf715 4/5: Add types to some no-type tokes in js.wy
Date: Tue, 18 Jun 2019 05:51:02 -0400 (EDT)

branch: master
commit 57cf71511362398853a74c48cda1d935a009df7a
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Add types to some no-type tokes in js.wy
    
    * admin/grammars/js.wy: Add types to the FALSE, TRUE and QUERY tokens.
    
    Without the types, you'd get the warning
    
    *Warning* default value of <<no-type>> tokens changed to QUERY, was 
NULL_TOKEN
    *Warning* default value of <<no-type>> tokens changed to TRUE, was QUERY
    *Warning* default value of <<no-type>> tokens changed to FALSE, was TRUE
    
    I think this should be harmless, and it doesn't seem to break handling
    .js files.
---
 admin/grammars/js.wy | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/admin/grammars/js.wy b/admin/grammars/js.wy
index e5a7c9b..ff048d8 100644
--- a/admin/grammars/js.wy
+++ b/admin/grammars/js.wy
@@ -236,9 +236,9 @@
 %token <number>      NUMBER
 
 
-%token FALSE
-%token TRUE
-%token QUERY
+%token <false> FALSE
+%token <true> TRUE
+%token <query> QUERY
 
 
 %token NULL_TOKEN



reply via email to

[Prev in Thread] Current Thread [Next in Thread]