grammars/source.stan.json in github-linguist-6.2.0 vs grammars/source.stan.json in github-linguist-6.3.0
- old
+ new
@@ -15,15 +15,15 @@
"name": "entity.name.type.stan",
"match": "\\b(functions|data|transformed\\s+data|parameters|transformed\\s+parameters|model|generated\\s+quantities)\\b"
},
{
"name": "storage.type.stan",
- "match": "\\b(int|real|vector|simplex|ordered|positive_ordered|row_vector|matrix|corr_matrix|cov_matrix|cholesky_factor_cov|cholesky_factor_corr|void)\\b"
+ "match": "\\b(int|real|vector|simplex|unit_vector|ordered|positive_ordered|row_vector|matrix|corr_matrix|cov_matrix|cholesky_factor_cov|cholesky_factor_corr|void)\\b"
},
{
"name": "keyword.control.stan",
- "match": "\\b(for|in|while|if|else)\\b"
+ "match": "\\b(for|in|while|if|else|break|continue)\\b"
},
{
"match": "\\b(lower|upper)\\s*(=)",
"captures": {
"1": {
@@ -301,10 +301,10 @@
},
"numbers": {
"patterns": [
{
"name": "constant.numeric.real.stan",
- "match": "(?x)\n(\n[0-9]+\\.[0-9]*([eE]-?[0-9]+)?\n|\n\\.[0-9]+([eE][-]?[0-9]+)?\n|\n[0-9]+[eE][-]?[0-9]+\n)"
+ "match": "(?x)\n(\n[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?\n|\n\\.[0-9]+([eE][+-]?[0-9]+)?\n|\n[0-9]+[eE][+-]?[0-9]+\n)"
},
{
"name": "constant.numeric.integer.stan",
"match": "[0-9]+(?=[^A-Za-z_])"
}