text/x-csharpsrc;text/x-csharp
*.cs
//
/*
*/
.cs
(\.[\s\n\r]*[\w]+)[\s\n\r]*(?=\(.*\))
^\s*#\s*
\%{preproc-start}
(define|undef|if(n?def)?|else|elif|endif|line|error|warning|region|endregion)
\b
@"
"
async
await
class
delegate
enum
event
interface
namespace
struct
using
abstract
const
explicit
extern
fixed
implicit
internal
lock
out
override
params
partial
private
protected
public
record
ref
sealed
static
readonly
unsafe
virtual
volatile
add
as
assembly
base
break
case
catch
checked
continue
default
do
else
finally
for
foreach
get
goto
if
in
init
is
nameof
new
remove
return
set
sizeof
stackalloc
super
switch
this
throw
try
typeof
unchecked
value
var
void
while
yield
bool
byte
char
decimal
double
dynamic
float
int
long
object
operator
sbyte
short
string
uint
ulong
ushort
null
false
true
(?<![\w\.])
[0-9]+[uUlL]*
(?![\w\.])
(?<![\w\.])
0[xX][a-fA-F0-9]+[uUlL]*
(?![\w\.])
(?<![\w\.])
((\.[0-9]+|[0-9]+\.[0-9]*)([Ee][+-]?[0-9]*)?[FfDdMm]?|
([0-9]+[Ee][+-]?[0-9]*)[FfDdMm]? |
([0-9]+)[FfDdMm])
(?![\w\.])
\\( # leading backslash
[\\\"\'nrbtfav\?] | # escaped character
[0-7]{1,3} | # one, two, or three octal digits
x[0-9A-Fa-f]+ # 'x' followed by hex digits
)
"
"
{[0-9][0-9:\#\%,./cdefgnrxtsuDTFGMY]*}
\%{escaped-character}
'(\%{escaped-character}|.)'