Sha256: cd11ef2fc1663466afcf31bf9b404b42b2bea9119b9e5cd70c70c50ca43e0996

Contents?: true

Size: 1.98 KB

Versions: 2

Compression:

Stored size: 1.98 KB

Contents

---
name: C#
fileTypes:
- cs
scopeName: source.c-sharp
uuid: 1BA75B32-707C-11D9-A928-000D93589AF6
foldingStartMarker: "(?x)\n\t\t /\\*\\*(?!\\*)\n\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\t"
patterns:
- name: comment.block.c#
  captures:
    '0':
      name: punctuation.definition.comment.c#
  begin: "/\\*"
  end: "\\*/"
- name: comment.line.double-slash.c#
  captures:
    '1':
      name: punctuation.definition.comment.c#
  match: "(//).*$\\n?"
- name: keyword.control.c#
  match: "\\b(abstract|as|base|break|case|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|false|finally|fixed|for|foreach|goto|if|implicit|in|internal|is|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|true|try|typeof|unckecked|unsafe|using|virtual|volatile|void|while)\\b"
- name: storage.type.c#
  match: "\\b(bool|byte|char|class|decimal|double|enum|float|int|nterface|long|object|sbyte|short|string|struct|uint|ulong|ushort)\\b"
- name: constant.numeric.c#
  match: "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b"
- name: string.quoted.double.c#
  endCaptures:
    '0':
      name: punctuation.definition.string.end.c#
  begin: "\""
  beginCaptures:
    '0':
      name: punctuation.definition.string.begin.c#
  end: "\""
  patterns:
  - name: constant.character.escape.c#
    match: "\\\\."
- name: string.quoted.single.c#
  endCaptures:
    '0':
      name: punctuation.definition.string.end.c#
  begin: "'"
  beginCaptures:
    '0':
      name: punctuation.definition.string.begin.c#
  end: "'"
  patterns:
  - name: constant.character.escape.c#
    match: "\\\\."
- name: meta.preprocessor.c#
  captures:
    '2':
      name: keyword.control.import.c#
  match: "^(#)\\s*(if|else|elif|endif|define|undef|warning|error|line|region|endregion)\\b"
foldingStopMarker: "(?<!\\*)\\*\\*/|^\\s*\\}"
keyEquivalent: "^~C"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
code_rippa-1.0.1 lib/code_rippa/syntax/cs.syntax
code_rippa-1.0.0 lib/code_rippa/syntax/cs.syntax