todo-to-issue-action/syntax.json
Quinn Winters 4dca8a215f fix: Clean up TeX syntax and add tests
1. Swap `\` for `\\` for TeX block comments to avoid issues with parsing
2. Add tests for TeX, Julia, AutoHotKey, Org mode, and Handlebars
3. Ensure tests can be run with 1 line command
4. Change logic in test framework so that tests run off of local version
   of `syntax.json` rather than remote version
5. Add details for running tests + adding tests for your syntax PR to
   readme
6. Add .gitignore file for python (to avoid compiles form tests winding
   up in commits)
2021-12-13 19:13:37 +01:00

554 lines
8.2 KiB
JSON

[
{
"language": "Python",
"markers": [
{
"type": "line",
"pattern": "#"
}
]
},
{
"language": "Elixir",
"markers": [
{
"type": "line",
"pattern": "#"
}
]
},
{
"language": "YAML",
"markers": [
{
"type": "line",
"pattern": "#"
}
]
},
{
"language": "Ruby",
"markers": [
{
"type": "line",
"pattern": "#"
},
{
"type": "block",
"pattern": {
"start": "=begin",
"end": "=end"
}
}
]
},
{
"language": "PHP",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "line",
"pattern": "#"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
},
{
"type": "block",
"pattern": {
"start": "<!--",
"end": "-->"
}
}
]
},
{
"language": "C",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "C++",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "C#",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Java",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "JavaScript",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Julia",
"markers": [
{
"type": "line",
"pattern": "#"
},
{
"type": "block",
"pattern": {
"start": "#=",
"end": "=#"
}
}
]
},
{
"language": "TypeScript",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "TSX",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Dart",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Kotlin",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Scala",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Objective-C",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Sass",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Less",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Swift",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "HTML",
"markers": [
{
"type": "block",
"pattern": {
"start": "<!--",
"end": "-->"
}
}
]
},
{
"language": "CSS",
"markers": [
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "AutoHotkey",
"markers": [
{
"type": "line",
"pattern": ";"
}
]
},
{
"language": "Markdown",
"markers": [
{
"type": "block",
"pattern": {
"start": "<!---",
"end": "-->"
}
}
]
},
{
"language": "Shell",
"markers": [
{
"type": "line",
"pattern": "#"
}
]
},
{
"language": "Handlebars",
"markers": [
{
"type": "block",
"pattern": {
"start": "<!--",
"end": "-->"
}
},
{
"type": "block",
"pattern": {
"start": "{{!",
"end": "}}"
}
}
]
},
{
"language": "Org",
"markers": [
{
"type": "line",
"pattern": "#"
},
{
"type": "block",
"pattern": {
"start": "#\\+begin_comment",
"end": "#\\+end_comment"
}
}
]
},
{
"language": "TeX",
"markers": [
{
"type": "line",
"pattern": "%"
},
{
"type": "block",
"pattern": {
"start": "\\\\begin{comment}",
"end": "\\\\end{comment}"
}
}
]
},
{
"language": "SQL",
"markers": [
{
"type": "line",
"pattern": "--"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "HTML+Razor",
"markers": [
{
"type": "block",
"pattern": {
"start": "<!--",
"end": "-->"
}
},
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Rust",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Vue",
"markers": [
{
"type": "block",
"pattern": {
"start": "<!--",
"end": "-->"
}
},
{
"type": "line",
"pattern": "//"
}
]
},
{
"language": "ABAP",
"markers": [
{
"type": "line",
"pattern": "\""
},
{
"type": "line",
"pattern": "\\*"
}
]
},
{
"language": "ABAP CDS",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "Go",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "HCL",
"markers" : [
{
"type": "line",
"pattern": "#"
},
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
}
]