diff libinterp/parse-tree/token.h @ 20285:8aa424ffc076

handle all end token types when reporting parse errors (bug #44824) * oct-parse.in.yy (octave_base_parser::end_error, octave_base_parser::end_token_ok): Handle all end token types in switch statement. Alphabetize list of cases (after simple_end). * token.h (end_tok_type): Alphabetize list of token types (after simple_end).
author John W. Eaton <jwe@octave.org>
date Mon, 13 Apr 2015 23:41:08 -0400
parents 734a77207e2e
children
line wrap: on
line diff
--- a/libinterp/parse-tree/token.h
+++ b/libinterp/parse-tree/token.h
@@ -56,9 +56,9 @@
     parfor_end,
     properties_end,
     switch_end,
+    try_catch_end,
+    unwind_protect_end,
     while_end,
-    try_catch_end,
-    unwind_protect_end
   };
 
   token (int tv, int l = -1, int c = -1);