-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
235 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "arn", | ||
"scopeName": "source.arn", | ||
"fileTypes": [ | ||
"arn" | ||
], | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.semicolon", | ||
"match": ";.*$" | ||
}, | ||
{ | ||
"name": "constant.numberic.arn", | ||
"match": "-?\\d+\\.\\d*" | ||
}, | ||
{ | ||
"//": "the word after RESI|PRES", | ||
"name": "entity.name.type.residue-name.rtf", | ||
"match": "(?<=^\\s*)\\S+" | ||
}, | ||
{ | ||
"//": "add (4/5, after two numbers), improper (4)", | ||
"name": "entity.name.tag.atom-name.tdb", | ||
"match": "(?<=^\\s*\\S+\\s*)[0-9]*[A-Z]+[A-Z0-9_'*]*" | ||
}, | ||
{ | ||
"//": "all strings made up of capitalized letters and numbers. matching a lot of remaining strings...including dihedral n", | ||
"name": "support.type.atom-type.arn", | ||
"match": "(?<=^\\s*\\S+\\s*[0-9]*[A-Z]+[A-Z0-9_'*]*\\s*)[0-9]*[A-Z]+[A-Z0-9_'*]*" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "Gromacs hdb file", | ||
"scopeName": "source.hdb", | ||
"fileTypes": [ | ||
"hdb" | ||
], | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.exclamation", | ||
"match": ";.*$" | ||
}, | ||
{ | ||
"name": "support.type.residue-name.hdb", | ||
"match": "(?<=^)\\S+(?=\\s*\\d+\\s*$)" | ||
}, | ||
{ | ||
"name": "string.other.count.hdb", | ||
"match": "(?<=^\\S+\\s*)\\d+(?=\\s*$)" | ||
}, | ||
{ | ||
"name": "entity.name.tag.atom-name.hdb", | ||
"match": "(?<=^\\d+\\s+\\d+\\s+)\\S+\\s+\\S+(\\s+\\S+\\s+\\S+)?(\\s+\\S+)?(?=\\s*$)" | ||
}, | ||
{ | ||
"name": "constant.numeric.hdb", | ||
"match": "\\b\\d+\\b|(?<=^\\s*)\\d+|(\\b|\\-)\\d+\\.?\\d*([eE][\\+\\-]?\\d+)?" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "mc", | ||
"scopeName": "source.mc", | ||
"fileTypes": [ | ||
"mc" | ||
], | ||
"patterns": [ | ||
{ | ||
"match": "HEAD_NAME|TAIL_NAME|PRE_HEAD_TYPE|POST_TAIL_TYPE|CHARGE", | ||
"name": "keyword.other.mc" | ||
}, | ||
{ | ||
"match": "OMIT_NAME", | ||
"name": "string.other.mc" | ||
}, | ||
{ | ||
"name": "entity.name.tag.atom-name.mc", | ||
"match": "(?<=NAME\\s*)\\b\\S+\\b" | ||
}, | ||
{ | ||
"name": "support.type.atomtype.mc", | ||
"match": "(?<=TYPE\\s*)\\b\\S+\\b" | ||
}, | ||
{ | ||
"name": "constant.numeric.mc", | ||
"match": "\\b(-?\\d*\\.\\d*)\\b|\\b\\d+\\b" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "Gromacs r2b file", | ||
"scopeName": "source.r2b", | ||
"fileTypes": [ | ||
"r2b" | ||
], | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.exclamation", | ||
"match": ";.*$" | ||
}, | ||
{ | ||
"name": "entity.name.type.residue-name.r2b", | ||
"match": "\\S+" | ||
}, | ||
{ | ||
"name": "constant.numeric.r2b", | ||
"match": "\\b\\d+\\b|(?<=^\\s*)\\d+|(\\b|\\-)\\d+\\.?\\d*([eE][\\+\\-]?\\d+)?" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | ||
"name": "Gromacs terminal database", | ||
"scopeName": "source.tdb", | ||
"fileTypes": [ | ||
"tdb" | ||
], | ||
"patterns": [ | ||
{ | ||
"name": "comment.line.semicolon", | ||
"match": ";.*$" | ||
}, | ||
{ | ||
"//": "section", | ||
"match": "\\[.*\\]", | ||
"name": "entity.name.class" | ||
}, | ||
{ | ||
"//": "deltete (one space); replace (before type mass charge)", | ||
"name": "entity.name.tag.atom-name.tdb", | ||
"match": "(?<=^\\s)[0-9]*[A-Z]+[A-Z0-9_']*|[0-9]*[A-Z]+[A-Z0-9_']*(?=\\s+[0-9]*[A-Z]+[A-Z0-9_'*]*\\s+-?\\d+\\.\\d*)" | ||
}, | ||
{ | ||
"//": "add (4/5, after two numbers), improper (4)", | ||
"name": "entity.name.tag.atom-name2.tdb", | ||
"match": "(\\s*-?\\+?[0-9]*[A-Z]+[A-Z0-9_'\\+]*){4}(\\s*-?\\+?[0-9]*[A-Z]+[A-Z0-9_'\\+]*)?" | ||
}, | ||
{ | ||
"//": "after atom name, match any of these strings", | ||
"name": "support.type.atom-type.tdb", | ||
"match": "[0-9]*[A-Z]+[A-Z0-9_'*]*(?=\\s+-?\\d+\\.\\d*)" | ||
}, | ||
{ | ||
"name": "constant.numeric.atomic-mass.tdb", | ||
"match": "(?<=[0-9]*[A-Z]+[A-Z0-9_'*]*\\s+)-?\\d+\\.\\d*" | ||
}, | ||
{ | ||
"name": "string.quoted.charge.tdb", | ||
"match": "(?<=[0-9]*[A-Z]+[A-Z0-9_'*]*\\s+-?\\d+\\.\\d*\\s+)-?\\d+\\.\\d*" | ||
}, | ||
{ | ||
"//": "number", | ||
"match": "(\\b|\\-)\\d+\\.?\\d*([eE][\\+\\-]?\\d+)?", | ||
"name": "constant.language.tdb" | ||
} | ||
] | ||
} |