Skip to content

Commit

Permalink
refactor: Ensure top-level rules consume end symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Mar 2, 2024
1 parent 634c15a commit 2d0b542
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions syntaxes/pv.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"//comment": "Declaration of type",
"begin": "(\\b(type)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments"},
Expand All @@ -20,9 +20,9 @@
]
},
{
"//comment" : "Declaration of functions",
"//comment" : "Declaration of fun",
"begin" : "(\\b(fun)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand Down Expand Up @@ -62,7 +62,7 @@
{
"//comment": "Declaration of reduc and equations",
"begin" : "(\\b(reduc|equation)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": {
"name": "keyword.control.proverif"
Expand All @@ -78,7 +78,7 @@
{
"//comment" : "Declaration of const, free",
"begin" : "(\\b(const|free)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -98,7 +98,7 @@
{
"//comment" : "Declaration of events, predicate",
"begin" : "(\\b(event|pred)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -112,7 +112,7 @@
{
"//comment" : "Declaration of tables",
"begin" : "(\\b(table)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -125,7 +125,7 @@
{
"//comment" : "Declaration of let",
"begin": "(\\b(let)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -145,7 +145,7 @@
{
"//comment" : "Declaration of letfun",
"begin": "(\\b(letfun)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -165,7 +165,7 @@
{
"//comment": "Declaration of set parameters",
"begin" : "(\\b(set)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -184,7 +184,7 @@
{
"//comment": "Declaration of nounif and select",
"begin": "(\\b(nounif|noselect|select)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -197,7 +197,7 @@
{
"//comment": "Declaration of query",
"begin": "(\\b(query)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -209,7 +209,7 @@
{
"//comment": "Declaration of noninterf",
"begin": "(\\b(noninterf)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -221,7 +221,7 @@
{
"//comment" : "Declaration of weaksecret",
"begin": "(\\b(weaksecret)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -233,7 +233,7 @@
{
"//comment": "Declaration of not",
"begin": "(\\b(not)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -254,7 +254,7 @@
{
"//comment": "Declaration of elimtrue",
"begin": "(\\b(elimtrue)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -266,7 +266,7 @@
{
"//comment" : "Declaration of channels",
"begin" : "(channel)\\s+",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments" },
Expand All @@ -276,7 +276,7 @@
{
"//comment": "Declaration of clauses",
"begin" : "(\\b(clauses)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments"},
Expand All @@ -303,7 +303,7 @@
{
"//comment": "Declaration of expand",
"begin" : "(\\b(expand)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": {
"1": { "name": "keyword.control.proverif" }
},
Expand All @@ -320,7 +320,7 @@
{
"//comment": "Declaration of lemma",
"begin" : "(\\b(axiom|lemma|restriction)\\b)",
"end": "(?=\\.)",
"end": "\\.",
"beginCaptures": { "1": { "name": "keyword.control.proverif" } },
"patterns": [
{ "include": "#comments"},
Expand Down

0 comments on commit 2d0b542

Please sign in to comment.