Skip to content

Commit

Permalink
auto-commit of artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Semenov [bot] <[email protected]>
  • Loading branch information
piotr-semenov authored and piotr-semenov-bot committed Apr 24, 2024
1 parent 0c9cf51 commit f7b6bc0
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 0 deletions.
66 changes: 66 additions & 0 deletions syntaxes/parigp.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
"patterns": [
{
"include": "#numeric"
},
{
"include": "#string"
}
],
"repository": {
Expand All @@ -151,6 +154,14 @@
"name": "constant.numeric.int"
}
]
},
"string": {
"patterns": [
{
"match": "\"(.*)\"",
"name": "constant.character.escape"
}
]
}
}
},
Expand All @@ -164,6 +175,61 @@
},
{
"include": "#literals"
},
{
"include": "#operators"
}
]
},
"operators": {
"patterns": [
{
"match": "\\b(!)",
"captures": {
"1": {
"name": "keyword.operator.factorial"
}
}
},
{
"match": "(&&|\\|\\||!\\b)",
"name": "keyword.operator.logical"
},
{
"match": "(<=|>=|<|>)",
"name": "keyword.operator.comparison"
},
{
"match": "[^<>](=)",
"name": "keyword.operator.assignment"
},
{
"match": "(<<|>>)",
"name": "keyword.operator.shift"
},
{
"match": "(\\-\\-|\\+\\+)",
"name": "keyword.operator.increment-decrement"
},
{
"match": "(\\-|\\+|\\*|\\/|\\\\|\\\\/|%)",
"name": "keyword.operator.arithmetic"
},
{
"match": "(\\+=|\\-=|\\*=|\\/=|\\\\=|<<=|>>=)",
"name": "keyword.operator.arithmetic.assign"
},
{
"match": "(\\.\\.)",
"name": "keyword.operator.range"
},
{
"match": "(\\~)",
"name": "keyword.operator.transpose"
},
{
"match": "[\\b\\)](\\')",
"name": "keyword.operator.derivative"
}
]
}
Expand Down
32 changes: 32 additions & 0 deletions syntaxes/parigp.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ repository:
literals:
patterns:
- include: "#numeric"
- include: "#string"
repository:
numeric:
patterns:
Expand All @@ -77,11 +78,42 @@ repository:
name: constant.numeric.float
- match: '\b([0-9]+)\b'
name: constant.numeric.int
string:
patterns:
- match: '"(.*)"'
name: constant.character.escape
code:
patterns:
- include: "#comments"
- include: "#functions"
- include: "#literals"
- include: "#operators"
operators:
patterns:
- match: '\b(!)'
captures:
1:
name: keyword.operator.factorial
- match: '(&&|\|\||!\b)'
name: keyword.operator.logical
- match: '(<=|>=|<|>)'
name: keyword.operator.comparison
- match: '[^<>](=)'
name: keyword.operator.assignment
- match: '(<<|>>)'
name: keyword.operator.shift
- match: '(\-\-|\+\+)'
name: keyword.operator.increment-decrement
- match: '(\-|\+|\*|\/|\\|\\/|%)'
name: keyword.operator.arithmetic
- match: '(\+=|\-=|\*=|\/=|\\=|<<=|>>=)'
name: keyword.operator.arithmetic.assign
- match: '(\.\.)'
name: keyword.operator.range
- match: '(\~)'
name: keyword.operator.transpose
- match: "[\\b\\)](\\')"
name: keyword.operator.derivative
fileTypes:
- gp
- pari
Expand Down
98 changes: 98 additions & 0 deletions syntaxes/parigp.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
<key>include</key>
<string>#literals</string>
</dict>
<dict>
<key>include</key>
<string>#operators</string>
</dict>
</array>
</dict>
<key>comments</key>
Expand Down Expand Up @@ -238,6 +242,10 @@
<key>include</key>
<string>#numeric</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
</array>
<key>repository</key>
<dict>
Expand Down Expand Up @@ -271,8 +279,98 @@
</dict>
</array>
</dict>
<key>string</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>"(.*)"</string>
<key>name</key>
<string>constant.character.escape</string>
</dict>
</array>
</dict>
</dict>
</dict>
<key>operators</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.factorial</string>
</dict>
</dict>
<key>match</key>
<string>\b(!)</string>
</dict>
<dict>
<key>match</key>
<string>(&amp;&amp;|\|\||!\b)</string>
<key>name</key>
<string>keyword.operator.logical</string>
</dict>
<dict>
<key>match</key>
<string>(&lt;=|&gt;=|&lt;|&gt;)</string>
<key>name</key>
<string>keyword.operator.comparison</string>
</dict>
<dict>
<key>match</key>
<string>[^&lt;&gt;](=)</string>
<key>name</key>
<string>keyword.operator.assignment</string>
</dict>
<dict>
<key>match</key>
<string>(&lt;&lt;|&gt;&gt;)</string>
<key>name</key>
<string>keyword.operator.shift</string>
</dict>
<dict>
<key>match</key>
<string>(\-\-|\+\+)</string>
<key>name</key>
<string>keyword.operator.increment-decrement</string>
</dict>
<dict>
<key>match</key>
<string>(\-|\+|\*|\/|\\|\\/|%)</string>
<key>name</key>
<string>keyword.operator.arithmetic</string>
</dict>
<dict>
<key>match</key>
<string>(\+=|\-=|\*=|\/=|\\=|&lt;&lt;=|&gt;&gt;=)</string>
<key>name</key>
<string>keyword.operator.arithmetic.assign</string>
</dict>
<dict>
<key>match</key>
<string>(\.\.)</string>
<key>name</key>
<string>keyword.operator.range</string>
</dict>
<dict>
<key>match</key>
<string>(\~)</string>
<key>name</key>
<string>keyword.operator.transpose</string>
</dict>
<dict>
<key>match</key>
<string>[\b\)](\')</string>
<key>name</key>
<string>keyword.operator.derivative</string>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>source.parigp</string>
Expand Down
66 changes: 66 additions & 0 deletions syntaxes/parigp.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
"patterns": [
{
"include": "#numeric"
},
{
"include": "#string"
}
],
"repository": {
Expand All @@ -151,6 +154,14 @@
"name": "constant.numeric.int"
}
]
},
"string": {
"patterns": [
{
"match": "\"(.*)\"",
"name": "constant.character.escape"
}
]
}
}
},
Expand All @@ -164,6 +175,61 @@
},
{
"include": "#literals"
},
{
"include": "#operators"
}
]
},
"operators": {
"patterns": [
{
"match": "\\b(!)",
"captures": {
"1": {
"name": "keyword.operator.factorial"
}
}
},
{
"match": "(&&|\\|\\||!\\b)",
"name": "keyword.operator.logical"
},
{
"match": "(<=|>=|<|>)",
"name": "keyword.operator.comparison"
},
{
"match": "[^<>](=)",
"name": "keyword.operator.assignment"
},
{
"match": "(<<|>>)",
"name": "keyword.operator.shift"
},
{
"match": "(\\-\\-|\\+\\+)",
"name": "keyword.operator.increment-decrement"
},
{
"match": "(\\-|\\+|\\*|\\/|\\\\|\\\\/|%)",
"name": "keyword.operator.arithmetic"
},
{
"match": "(\\+=|\\-=|\\*=|\\/=|\\\\=|<<=|>>=)",
"name": "keyword.operator.arithmetic.assign"
},
{
"match": "(\\.\\.)",
"name": "keyword.operator.range"
},
{
"match": "(\\~)",
"name": "keyword.operator.transpose"
},
{
"match": "[\\b\\)](\\')",
"name": "keyword.operator.derivative"
}
]
}
Expand Down

0 comments on commit f7b6bc0

Please sign in to comment.