mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
25 lines
814 B
Plaintext
25 lines
814 B
Plaintext
'.source.c, .source.cpp, .source.objc, .source.objcpp':
|
|
'editor':
|
|
'commentStart': '// '
|
|
# Technically, line comments aren't universally valid in C, but all modern
|
|
# C compilers support them.
|
|
'commentDelimiters':
|
|
'block': ['/*', '*/']
|
|
'line': '//'
|
|
'increaseIndentPattern': '(?x)
|
|
^ .* \\{ [^}"\']* $
|
|
|^ .* \\( [^\\)"\']* $
|
|
|^ \\s* (public|private|protected): \\s* $
|
|
|^ \\s* @(public|private|protected) \\s* $
|
|
|^ \\s* \\{ \\} $
|
|
'
|
|
'decreaseIndentPattern': '(?x)
|
|
^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\}
|
|
|^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\)
|
|
|^ \\s* (public|private|protected): \\s* $
|
|
|^ \\s* @(public|private|protected) \\s* $
|
|
'
|
|
'.source.c, .source.cpp':
|
|
'editor':
|
|
'foldEndPattern': '(?<!\\*)\\*\\*/|^\\s*\\}'
|