Commit 9969461b authored by RobertPlummer's avatar RobertPlummer

[FIX] Debug cleanup

parent 80eb4a2c
......@@ -112,39 +112,39 @@ SMILE [a-z]+
%}
<bold>[_][_] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'BOLD_END'); %}
[_][_] %{ this.begin('bold'); alert(this.yy.npOn); return (this.yy.npOn ? 'CONTENT' : 'BOLD_START'); %}
[_][_] %{ this.begin('bold'); return (this.yy.npOn ? 'CONTENT' : 'BOLD_START'); %}
<box>[\^] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'BOX_END'); %}
[\^] %{ this.begin('box'); return (this.yy.npOn ? 'CONTENT' : 'BOX_START'); %}
[\^] %{ this.begin('box'); return (this.yy.npOn ? 'CONTENT' : 'BOX_START'); %}
<center>[:][:] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'CENTER_END'); %}
[:][:] %{ this.begin('center'); return (this.yy.npOn ? 'CONTENT' : 'CENTER_START'); %}
[:][:] %{ this.begin('center'); return (this.yy.npOn ? 'CONTENT' : 'CENTER_START'); %}
<colortext>[\~][\~] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'COLORTEXT_END'); %}
[\~][\~][#] %{ this.begin('colortext'); return (this.yy.npOn ? 'CONTENT' : 'COLORTEXT_START'); %}
<header6>[\n] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER6_END'); %}
[\n]("!!!!!!") %{ this.begin('header6'); return (this.yy.npOn ? 'CONTENT' : 'HEADER6_START'); %}
[\n]("!!!!!!") %{ this.begin('header6'); return (this.yy.npOn ? 'CONTENT' : 'HEADER6_START'); %}
<header5>[\n] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER5_END'); %}
[\n]("!!!!!") %{ this.begin('header5'); return (this.yy.npOn ? 'CONTENT' : 'HEADER5_START'); %}
[\n]("!!!!!") %{ this.begin('header5'); return (this.yy.npOn ? 'CONTENT' : 'HEADER5_START'); %}
<header4>[\n] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER4_END'); %}
[\n]("!!!!") %{ this.begin('header4'); return (this.yy.npOn ? 'CONTENT' : 'HEADER4_START'); %}
[\n]("!!!!") %{ this.begin('header4'); return (this.yy.npOn ? 'CONTENT' : 'HEADER4_START'); %}
<header3>[\n] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER3_END'); %}
[\n]("!!!") %{ this.begin('header3'); return (this.yy.npOn ? 'CONTENT' : 'HEADER3_START'); %}
[\n]("!!!") %{ this.begin('header3'); return (this.yy.npOn ? 'CONTENT' : 'HEADER3_START'); %}
<header2>[\n] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER2_END'); %}
[\n]("!!") %{ this.begin('header2'); return (this.yy.npOn ? 'CONTENT' : 'HEADER2_START'); %}
[\n]("!!") %{ this.begin('header2'); return (this.yy.npOn ? 'CONTENT' : 'HEADER2_START'); %}
<header1>[\n] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER1_END'); %}
[\n]("!") %{ this.begin('header1'); return (this.yy.npOn ? 'CONTENT' : 'HEADER1_START'); %}
[\n]("!") %{ this.begin('header1'); return (this.yy.npOn ? 'CONTENT' : 'HEADER1_START'); %}
<italic>[']['] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'ITALIC_END'); %}
[']['] %{ this.begin('italic'); return (this.yy.npOn ? 'CONTENT' : 'ITALIC_START'); %}
[']['] %{ this.begin('italic'); return (this.yy.npOn ? 'CONTENT' : 'ITALIC_START'); %}
<link>("]") %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'LINK_END'); %}
("[") %{ this.begin('link'); return (this.yy.npOn ? 'CONTENT' : 'LINK_START'); %}
("[") %{ this.begin('link'); return (this.yy.npOn ? 'CONTENT' : 'LINK_START'); %}
<strikethrough>[-][-] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'STRIKETHROUGH_END'); %}
[-][-] %{ this.begin('strikethrough'); return (this.yy.npOn ? 'CONTENT' : 'STRIKETHROUGH_START'); %}
<table>[|][|] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'TABLE_END'); %}
[|][|] %{ this.begin('table'); return (this.yy.npOn ? 'CONTENT' : 'TABLE_START'); %}
<titlebar>[=][-] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'TITLEBAR_END'); %}
[-][=] %{ this.begin('titlebar'); return (this.yy.npOn ? 'CONTENT' : 'TITLEBAR_START'); %}
[-][=] %{ this.begin('titlebar'); return (this.yy.npOn ? 'CONTENT' : 'TITLEBAR_START'); %}
<underscore>[=][=][=] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'UNDERSCORE_END'); %}
[=][=][=] %{ this.begin('underscore'); return (this.yy.npOn ? 'CONTENT' : 'UNDERSCORE_START'); %}
[=][=][=] %{ this.begin('underscore'); return (this.yy.npOn ? 'CONTENT' : 'UNDERSCORE_START'); %}
<wikilink>[)][)] %{ this.popState(); return (this.yy.npOn ? 'CONTENT' : 'WIKILINK_END'); %}
[(][(] %{ this.begin('wikilink'); return (this.yy.npOn ? 'CONTENT' : 'WIKILINK_START'); %}
[(][(] %{ this.begin('wikilink'); return (this.yy.npOn ? 'CONTENT' : 'WIKILINK_START'); %}
"<"(.|\n)*?">" return 'HTML'
(.) return 'CONTENT'
......
......@@ -498,15 +498,15 @@ case 7:
break;
case 8: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'BOLD_END');
break;
case 9: this.begin('bold'); alert(this.yy.npOn); return (this.yy.npOn ? 'CONTENT' : 'BOLD_START');
case 9: this.begin('bold'); return (this.yy.npOn ? 'CONTENT' : 'BOLD_START');
break;
case 10: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'BOX_END');
break;
case 11: this.begin('box'); return (this.yy.npOn ? 'CONTENT' : 'BOX_START');
case 11: this.begin('box'); return (this.yy.npOn ? 'CONTENT' : 'BOX_START');
break;
case 12: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'CENTER_END');
break;
case 13: this.begin('center'); return (this.yy.npOn ? 'CONTENT' : 'CENTER_START');
case 13: this.begin('center'); return (this.yy.npOn ? 'CONTENT' : 'CENTER_START');
break;
case 14: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'COLORTEXT_END');
break;
......@@ -514,35 +514,35 @@ case 15: this.begin('colortext'); return (this.yy.npOn ? 'CONTENT' : 'COLORTEXT
break;
case 16: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER6_END');
break;
case 17: this.begin('header6'); return (this.yy.npOn ? 'CONTENT' : 'HEADER6_START');
case 17: this.begin('header6'); return (this.yy.npOn ? 'CONTENT' : 'HEADER6_START');
break;
case 18: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER5_END');
break;
case 19: this.begin('header5'); return (this.yy.npOn ? 'CONTENT' : 'HEADER5_START');
case 19: this.begin('header5'); return (this.yy.npOn ? 'CONTENT' : 'HEADER5_START');
break;
case 20: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER4_END');
break;
case 21: this.begin('header4'); return (this.yy.npOn ? 'CONTENT' : 'HEADER4_START');
case 21: this.begin('header4'); return (this.yy.npOn ? 'CONTENT' : 'HEADER4_START');
break;
case 22: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER3_END');
break;
case 23: this.begin('header3'); return (this.yy.npOn ? 'CONTENT' : 'HEADER3_START');
case 23: this.begin('header3'); return (this.yy.npOn ? 'CONTENT' : 'HEADER3_START');
break;
case 24: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER2_END');
break;
case 25: this.begin('header2'); return (this.yy.npOn ? 'CONTENT' : 'HEADER2_START');
case 25: this.begin('header2'); return (this.yy.npOn ? 'CONTENT' : 'HEADER2_START');
break;
case 26: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'HEADER1_END');
break;
case 27: this.begin('header1'); return (this.yy.npOn ? 'CONTENT' : 'HEADER1_START');
case 27: this.begin('header1'); return (this.yy.npOn ? 'CONTENT' : 'HEADER1_START');
break;
case 28: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'ITALIC_END');
break;
case 29: this.begin('italic'); return (this.yy.npOn ? 'CONTENT' : 'ITALIC_START');
case 29: this.begin('italic'); return (this.yy.npOn ? 'CONTENT' : 'ITALIC_START');
break;
case 30: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'LINK_END');
break;
case 31: this.begin('link'); return (this.yy.npOn ? 'CONTENT' : 'LINK_START');
case 31: this.begin('link'); return (this.yy.npOn ? 'CONTENT' : 'LINK_START');
break;
case 32: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'STRIKETHROUGH_END');
break;
......@@ -554,15 +554,15 @@ case 35: this.begin('table'); return (this.yy.npOn ? 'CONTENT' : 'TABLE_START'
break;
case 36: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'TITLEBAR_END');
break;
case 37: this.begin('titlebar'); return (this.yy.npOn ? 'CONTENT' : 'TITLEBAR_START');
case 37: this.begin('titlebar'); return (this.yy.npOn ? 'CONTENT' : 'TITLEBAR_START');
break;
case 38: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'UNDERSCORE_END');
break;
case 39: this.begin('underscore'); return (this.yy.npOn ? 'CONTENT' : 'UNDERSCORE_START');
case 39: this.begin('underscore'); return (this.yy.npOn ? 'CONTENT' : 'UNDERSCORE_START');
break;
case 40: this.popState(); return (this.yy.npOn ? 'CONTENT' : 'WIKILINK_END');
break;
case 41: this.begin('wikilink'); return (this.yy.npOn ? 'CONTENT' : 'WIKILINK_START');
case 41: this.begin('wikilink'); return (this.yy.npOn ? 'CONTENT' : 'WIKILINK_START');
break;
case 42:return 13
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment