changeset 17275:8201f78a0064

Allow simple symbol as super-/subscript. * libinterp/corefcn/oct-tex-parser.yy (subscript_element, superscript_element): Allow simple syntax like SUB/SUPER followed by a symbol_element.
author Michael Goffioul <michael.goffioul@gmail.com>
date Sun, 18 Aug 2013 21:39:29 -0400
parents 0a09d4b40767
children f052d7ccb7dc
files libinterp/corefcn/oct-tex-parser.yy
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/oct-tex-parser.yy	Sun Aug 18 21:39:27 2013 -0400
+++ b/libinterp/corefcn/oct-tex-parser.yy	Sun Aug 18 21:39:29 2013 -0400
@@ -156,12 +156,16 @@
 				  { $$ = new text_element_superscript ($2); }
 				| SUPER scoped_string_element_list
 				  { $$ = new text_element_superscript ($2); }
+				| SUPER symbol_element
+				  { $$ = new text_element_superscript ($2); }
 				;
 
 subscript_element		: SUB CH
 				  { $$ = new text_element_subscript ($2); }
 				| SUB scoped_string_element_list
 				  { $$ = new text_element_subscript ($2); }
+				| SUB symbol_element
+				  { $$ = new text_element_subscript ($2); }
 				;
 
 combined_script_element		: subscript_element superscript_element