Skip to content

Commit ff36cb8

Browse files
Fixed Highlight Syntax to include Math
1 parent 60cb9d8 commit ff36cb8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

EZ_IDE/EZCode_Syntax.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<rule style="Pink">\b(if|loop|else|DEVPORTAL|method|endmethod)\b</rule>
1010

1111
<style name="Keyword" color="CadetBlue" fontStyle="Regular"></style>
12-
<rule style="Keyword">\b(list|group|sound|var|print|await|bringto|clear|instance|destroy|event|file|input|intersects|messagebox|stop|shape|textbox|label|button|window|global)\b</rule>
12+
<rule style="Keyword">\b(list|group|sound|var|print|await|bringto|clear|instance|destroy|event|file|input|math|intersects|messagebox|stop|shape|textbox|label|button|window|global)\b</rule>
1313

1414
<style name="Loop" color="LightBlue" fontStyle="Regular"/>
1515
<rule style="Loop">(?&lt;=\blist\b\s*).*\b(new|add|equals|remove|destroy|clear)\b</rule>
@@ -38,6 +38,9 @@
3838
<style name="AfterWordText" color="LightBlue" fontStyle="Regular"/>
3939
<rule style="AfterWordText">(?&lt;=\b(print|messagebox|DEVPORTAL)\b\s*).*</rule>
4040

41+
<style name="Math" color="SkyBlue" fontStyle="Regular"/>
42+
<rule style="Math">abs\((.*?)\)|pi\(\)|neg\((.*?)\)|sq\((.*?)\)|sqr\((.*?)\)|round\((.*?)\)|pow\((.*?)\)|clamp\((.*?)\)|sum\((.*?)\)|avg\((.*?)\)|min\((.*?)\)|max\((.*?)\)|</rule>
43+
4144
<style name="Properties" color="SkyBlue" fontStyle="Regular"/>
4245
<rule style="Properties">\b(focus:|readonly:|z:|enable:|font:|point:|points:|auto:|align:|autosize:|multi:|multiline:|wrap:|wordwrap:|vertical:|verticalscrollbar:|horizantal:|horizantalscrollbar:|x:|y:|t:|text:|h:|height:|w:|width:|bc:|bg:|backcolor:|fc:|fg:|forecolor:|poly:|p:|image:|imagelayout:|foucs:|enable:|minwidth:|maxwidth:|minheight:|maxheight:|opacity:|showicon:|showintaskbar:|icon:|state:|type:|startposition:)</rule>
4346

0 commit comments

Comments
 (0)