c-sharp.ts 470 B

1234567891011121314151617181920212223
  1. /*
  2. - class declarations
  3. - interface declarations
  4. - method declarations
  5. - namespace declarations
  6. */
  7. export default `
  8. (class_declaration
  9. name: (identifier) @name.definition.class
  10. ) @definition.class
  11. (interface_declaration
  12. name: (identifier) @name.definition.interface
  13. ) @definition.interface
  14. (method_declaration
  15. name: (identifier) @name.definition.method
  16. ) @definition.method
  17. (namespace_declaration
  18. name: (identifier) @name.definition.module
  19. ) @definition.module
  20. `