home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / nano / objc.nanorc < prev    next >
Encoding:
Text File  |  2010-04-15  |  1.7 KB  |  42 lines

  1. ## Here is an example for C/C++/Obj-C.
  2. ##
  3. syntax "m" "\.m$"
  4.  
  5.  
  6. ## Stuffs
  7. color brightwhite "\<[A-Z_][0-9A-Z_]+\>" 
  8. color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
  9. color green "\<[[:alpha:]_][[:alnum:]_]*_t\>"
  10. color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
  11. color brightgreen "\<(for|if|while|do|else|case|default|switch)\>"
  12. color brightgreen "\<(try|throw|catch|operator|new|delete)\>"
  13. color brightgreen "\<(goto|continue|break|return)\>"
  14. color brightgreen "@\<(en(code|d)|i(mplementation|nterface)|selector)\>"
  15. ##
  16. ## GCC builtins
  17. color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
  18.  
  19. ## Selector/method
  20. color brightmagenta "(^|[[:space:]])\[.*[[:space:]].*\]"
  21. color white ":[[:alnum:]]*"
  22. color magenta "[[:alnum:]]*:"
  23. color white "\[[^][:space:]]*\]"
  24.  
  25. ##
  26. ## String highlighting.  You will in general want your comments and
  27. ## strings to come last, because syntax highlighting rules will be
  28. ## applied in the order they are read in.
  29. color brightblack "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
  30. color brightblack "<[^=     ]*>" ""(\\.|[^"])*""
  31. color brightblue "@"(\\.|[^"])*""
  32. ##
  33. ## This string is VERY resource intensive!
  34. ## color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
  35.  
  36. color brightblue "^[[:space:]]*#[[:space:]]*(define|include|import|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
  37.  
  38. ## Comment highlighting
  39. color yellow "//.*"
  40. color yellow start="/\*" end="\*/"
  41.  
  42.