! NEdit Syntax Highlighting Patterns for AVR 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 ! Syntax Highlighting Patterns for Cypress Programmable System-on-Chip ! PSoC assembly language. 1.1, 19 Apr 2008: Volker Kuhlmann ! ! ! 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: ! 1.0, 29 Sep 2011: VK ! - Added bss directive, file type recognition elf32-avr. ! 0.9, 19 Sep 2010: Volker Kuhlmann ! - Initial version. AVR instruction set. ! Directives not a good fit for AVR yet. ! nedit.highlightPatterns:\ AVR Assembly:1:1{\n\ README:"AVR Assembly syntax highlighting patterns, version 0.9, Volker Kuhlmann":::Warning::D\n\ keyword:"<(adiw|ad[cd]|andi?|asr|bclr|bld|break|breq|brge|bri[ed]|brlo|brlt|brmi|brne|brpl|brsh|br[bchtv][sc]|bse?t|clr|cl[cnzisvth]|com|cpse|cp[ci]?|dec|eor|fmuls?|fmulsu|in|inc|ld[ids]?|ls[lr]|movw?|muls?|mulsu|neg|nop|ori?|out|pop|push|reti?|ro[lr]|sbci?|sbiw|sbi[cs]|sbr[cs]|ser|se[cnzisvth]|sleep|st[ds]?|subi?|swap|tst|wdr|[ls]pm|[ri]?call|[ri]?jmp|[sc]bi|[sc]br)>":::Keyword::D\n\ keyword2:"<(ADIW|AD[CD]|ANDI?|ASR|BCLR|BLD|BREAK|BREQ|BRGE|BRI[ED]|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BR[BCHTV][SC]|BSE?T|CLR|CL[CNZISVTH]|COM|CPSE|CP[CI]?|DEC|EOR|FMULS?|FMULSU|IN|INC|LD[IDS]?|LS[LR]|MOVW?|MULS?|MULSU|NEG|NOP|ORI?|OUT|POP|PUSH|RETI?|RO[LR]|SBCI?|SBIW|SBI[CS]|SBR[CS]|SER|SE[CNZISVTH]|SLEEP|ST[DS]?|SUBI?|SWAP|TST|WDR|[LS]PM|[RI]?CALL|[RI]?JMP|[SC]BI|[SC]BR)>":::Keyword::D\n\ register:"<(r[0-9][0-9]?|h?hi8|h?lo8)>":::ASM Register::D\n\ register2:"<(R[0-9][0-9]?|H?HI8|H?LO8|Z)":::ASM Register::D\n\ comment:"(;|//)":"$"::ASM Comment::D\n\ directive:"<(ascii|align|area|asciz|blk|blkw|bss|byte|data|db|ddw|ds|dsu|dw|dwl|else|elsif|end|endif|endm|equ|export|file|global|if|include|irp|irpc|local|long|macro|opt|org|p2align|pagesel|processor|psect|rept|section|set|signat|size|skip|string|text|type|[su]leb128|word)>|\\.((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:\ AVR Assembly:.asm .S:"file format elf32-avr":Auto::::: nedit.styles:\ ASM Register:SeaGreen:Bold\n\ ASM Comment:gray30:Italic