! NEdit Syntax Highlighting Patterns for Cypress Programmable System-on-Chip ! PSoC assembly language. ! ! Load this file by starting nedit with: ! ! nedit -import ! ! The patterns can then be saved permanently into nedit's own resource file ! by using Save Defaults from the Preferences menu. ! ! ! Based on: ! Syntax Highlighting Patterns for Nasm 0.98 Assembly Language ! (Author: Claudio Fanin) ! (Contributions: Wojciech Mula - SSE[2], numbers, labels) ! Last update 2002-07-01 ! http://www.nedit.org/ftp/contrib/highlighting/nasm098SSE.pats ! ! ! Download: ! http://volker.top.geek.nz/soft/nedit/ ! and perhaps: ! http://www.nedit.org/ftp/contrib/highlighting/ ! ! Improvements by Volker Kuhlmann are: ! Copyright (C) by Volker Kuhlmann , ! Released under the same license as NEdit itself, ! or, at your option, under the GNU General Public Licence, Version 2. ! ! The CPU instructions are complete, as are the directives as per the HI-TECH ! C compiler manual. Highlighting of complex instruction arguments could be ! improved. The manner of highlighting memory-mapped registers is open for ! discussion. ! ! ChangeLog: ! 0.9, 10 Apr 2008: Volker Kuhlmann ! - Initial release. ! 1.0, 11 Apr 2008: Volker Kuhlmann ! - Improved. ! 1.1, 19 Apr 2008: Volker Kuhlmann ! - Made all patterns pass-2 to speed up file loading. ! - Comments start with "//", not "/". nedit.highlightPatterns:\ PSoC Assembly:1:1{\n\ README:"PSoC Assembly syntax highlighting patterns, version 1.1, Volker Kuhlmann":::Warning::D\n\ keyword:"<([lx]?call|adc|add|and|as[lr]|cmp|cpl|dec|halt|inc|index|jacc|jn?[cz]|l?jmp|mov|mvi|nop|or|pop|push|r[lr]c|reti?|romx|sbb|ssc|sub|swap|swap|tst|xor)>":::Keyword::D\n\ keyword2:"<([LX]?CALL|ADC|ADD|AND|AS[LR]|CMP|CPL|DEC|HALT|INC|INDEX|JACC|JN?[CZ]|L?JMP|MOV|MVI|NOP|OR|POP|PUSH|R[LR]C|RETI?|ROMX|SBB|SSC|SUB|SWAP|SWAP|TST|XOR)>":::Keyword::D\n\ register:"<(a|x|f|sp)>":::PSoC Register::D\n\ register2:"<(A|X|F|SP)>|":::PSoC Register::D\n\ comment:"(;|//)":"$"::PSoC Comment::D\n\ directive:"<(align|area|asciz|blk|blkw|db|ddw|ds|dsu|dw|dwl|else|elsif|end|endif|endm|equ|export|global|if|include|irp|irpc|local|macro|opt|org|pagesel|processor|psect|rept|set|signat)>|\\.((end)?literal|(end)?section|org)>":::Storage Type1::D\n\ directive2:"<(ALIGN|AREA|ASCIZ|BLK|BLKW|DB|DDW|DS|DSU|DW|DWL|ELSE|ELSIF|END|ENDIF|ENDM|EQU|EXPORT|GLOBAL|IF|INCLUDE|IRP|IRPC|LOCAL|MACRO|OPT|ORG|PAGESEL|PROCESSOR|PSECT|REPT|SET|SIGNAT)>|\\.((END)?LITERAL|(END)?SECTION|ORG)>":::Storage Type1::D\n\ label:"(<|[?])[\\l_$?][\\w$?]*::?":::Text Arg::D\n\ locallabel:"\\.[\\l_$?][\\w$?]+:":::String::D\n\ hexnumber:"(?i(0x|\\$)[0-9a-f]+>|<[0-9a-f]+h>)":::Identifier1::D\n\ binnumber:"<[01]+[bB]>|<0[bB][01]+>|%[01]+>":::Identifier1::D\n\ octnumber:"<[0][0-7]+>|<[0-7]+[oOqQ]>":::Identifier1::D\n\ decnumber:"<[1-9][0-9]*>|<[0-9]+[dD]>":::Identifier1::D\n\ variable:"[[][<>]?\\l\\w+[]]":::Text Arg1::D\n\ string:"""":"""":"$":String::D\n\ char:"'.'":::Text Arg::D\n\ } nedit.languageModes:\ PSoC Assembly:.asm .S::Auto:::: nedit.styles:\ PSoC Register:SeaGreen:Bold\n\ PSoC Comment:gray30:Italic