-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhpc.nanorc
52 lines (40 loc) · 1.36 KB
/
hpc.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
############################################
# Syntax highlighting for R #
# by Stephen Haptonstahl #
# March 15, 2009 #
# http://srh.ucdavis.edu/drupal/node/20 #
# edited by Mike Miller #
############################################
syntax "R" "\.R$"
# reserved words
color brightyellow "\b(if|else|repeat|while|function|for|in|next|break|TRUE|T|FALSE|F|NULL|Inf|NaN|NA|NA_integer_|NA_real_|NA_complex_|NA_character_|\.\.\.)\b"
color brightyellow "\.\.[0-9]"
color brightred "\b(require|library)\b"
# logicals
color brightgreen "(==|<=|>=|!=|!|<|>|\||\|\||&|&&|%in%|%%|%\*%|%/%|%o%|%x%)"
# strings
color cyan "'[^']*'"
color cyan ""[^"]*""
# "
# variable definitions
color brightblue "^.*?<-"
color yellow start="[$@%]" end="[[:alnum:]]*"
# function definitions
color magenta "\<([A-Za-z0-9\.]+)\>\("
# parameters -- not working yet
# icolor brightblue "[^,\(=]*=(?:[^=])"
# danger!
color black,red "(stop|warning|return)"
color red " = "
color yellow "[(){}[;|<>]"
color yellow "\]"
color brightred "<-"
## Comment highlighting
color brightblack "#.*$"
include /usr/share/nano/sh.nanorc
include /usr/share/nano/c.nanorc
include /usr/share/nano/html.nanorc
include /usr/share/nano/perl.nanorc
include /usr/share/nano/python.nanorc
include /usr/share/nano/ruby.nanorc
include /usr/share/nano/tex.nanorc