1+ # # Oscura Dusk theme for nano
2+ # # Author: Vinit Kumar
3+ # # License: MIT
4+
5+ # Basic Colors
6+ set titlecolor #E6E6E6 ,#131419
7+ set statuscolor #E6E6E6 ,#131419
8+ set errorcolor #FF5C5C ,#131419
9+ set selectedcolor #E6E6E6 ,#5A5B63
10+ set stripecolor #232323
11+ set numbercolor #46474F
12+ set keycolor #9099A1
13+ set functioncolor #E6E7A3
14+
15+ # Common Syntax Colors
16+ set functioncolor #E6E7A3
17+ set numbercolor #F9B98C
18+ set stringcolor #F9B98C
19+ set commentcolor #46474F
20+ set specialcolor #9592A4
21+ set keywordcolor #9099A1
22+ set constantcolor #F9B98C
23+
24+ # General Programming Syntax
25+ color #9099A1 " \< (if| else| for| while| do| return| break| continue| switch| case| default| try| catch| finally| throw| throws)\> "
26+ color #F9B98C " "([^ " ]| \\ ")* "| '([^ ' ]| \\ ')* '"
27+ color #46474F " (^ | [[:space :] ])//. * "
28+ color #46474F start =" /\* " end =" \* /"
29+ color #F9B98C " \< ([0 -9 ]+ )\> "
30+ color #9592A4 " [. ,;:{} ()<>!=& | + \- / * % ^]"
31+ color #E6E7A3 " \< [A -Za -z_ ][0 -9A -Za -z_ ]+ \s * \( "
32+
33+ # Python Specific
34+ color #9099A1 " \< (def| class| import| from| as| with| in| is| not| and| or| True| False| None| try| except| finally| raise| assert| lambda| yield| global| nonlocal)\> "
35+ color #E6E7A3 " \< (__init__| __main__| __name__| __file__| __doc__| __dict__| __module__| __bases__| __class__)\> "
36+ color #46474F " #. * "
37+ color #F9B98C start =" '''[^ ' ]* " end =" '''"
38+ color #F9B98C start =" \"\"\" [^ \" ]* " end =" \"\"\" "
39+ color #9592A4 " @[A -Za -z_ ][0 -9A -Za -z_ ]* "
40+
41+ # Ruby Specific
42+ color #9099A1 " \< (begin| end| def| class| module| rescue| ensure| when| unless| until| while| for| break| next| redo| retry| in| do| yield| self| super| return| alias| undef| BEGIN| END| __FILE__| __LINE__| private| protected| public| require| include| extend| attr_reader| attr_writer| attr_accessor)\> "
43+ color #E6E7A3 " \< [A -Z ][A -Za -z0 -9_ ]* \> "
44+ color #46474F " #. * "
45+ color #9592A4 " @{1 ,2 } [A -Za -z_ ][0 -9A -Za -z_ ]* "
46+ color #9592A4 " :[A -Za -z_ ][0 -9A -Za -z_ ]* "
47+ color #F9B98C start =" =begin" end =" =end"
48+
49+ # JavaScript/TypeScript Common
50+ color #9099A1 " \< (const| let| var| function| class| extends| implements| constructor| super| this| static| public| private| protected| readonly| interface| type| enum| namespace| module| export| import| default| as| from| async| await| of| new| delete| instanceof| typeof| void)\> "
51+ color #E6E7A3 " \< (Array| Boolean| Date| Error| Function| Math| Number| Object| RegExp| String| Promise| Map| Set| Symbol| any| never| unknown| null| undefined)\> "
52+ color #9592A4 " \$ [A -Za -z_ ][0 -9A -Za -z_ ]* "
53+ color #F9B98C start =" `" end =" `"
54+ color #9592A4 " \$ {. *? }"
55+
56+ # TypeScript Specific
57+ color #9099A1 " \< (declare| abstract| implements| type| interface| keyof| typeof| infer| is| as| satisfies)\> "
58+ color #E6E7A3 " :[[:space :] ]* [A -Za -z_ ][0 -9A -Za -z_<> ]* "
59+ color #9592A4 " <[^ > ]* >"
60+
61+ # Keywords
62+ color #9099A1 " \< (class| namespace| interface| struct| enum| union| typedef| extends| implements| instanceof| new| delete| throw| throws| try| catch| finally| public| private| protected| internal| static| final| const| abstract| override| virtual| sealed| readonly| partial| ref| out| params| volatile| unsafe| fixed| readonly| stackalloc| operator| event| delegate| explicit| implicit| get| set| add| remove| value| async| await| yield| from| where| select| group| into| orderby| join| let| in| on| equals| by| ascending| descending| return| break| continue| goto| if| else| switch| case| default| while| do| for| foreach| lock| using| checked| unchecked| is| as| sizeof| typeof| null| true| false| void| bool| byte| char| decimal| double| float| int| long| object| sbyte| short| string| uint| ulong| ushort| var)\> "
63+
64+ # Types
65+ color #E6E7A3 " \< (bool| byte| char| decimal| double| float| int| long| object| sbyte| short| string| uint| ulong| ushort| void)\> "
66+
67+ # Strings
68+ color #F9B98C " "([^ " ]| \\ ")* ""
69+ color #F9B98C " '([^ ' ]| \\ ')* '"
70+
71+ # Comments
72+ color #46474F " //. * "
73+ color #46474F start =" /\* " end =" \* /"
74+
75+ # Special
76+ color #9592A4 " [. ,;:{} ()<>!=& | + \- / * % ^]"
77+ color #9592A4 " \[ "
78+ color #9592A4 " \] "
79+
80+ # Numbers
81+ color #F9B98C " \< ([0 -9 ]+ )\> "
82+
83+ # Function calls
84+ color #E6E7A3 " \< [A -Za -z_ ][0 -9A -Za -z_ ]+ \s * \( "
0 commit comments