github-linguist 7.22.0 → 7.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.ats.json +1 -1
- data/grammars/source.p4.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/language.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c373339eab02779385b94acd907d92374f8b125c07607883cf8a67039dd901e
|
4
|
+
data.tar.gz: b66665d784e0dcd404abe515ff212cb46798f72f16f67a337390dee61ac6a982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92610d34217ce7e4bfa65a8203c7516f07c65b754aafd3ef220ef5150faf4c9fdeb33d06294a15e3aae8ca7711c13cee174c595044ca59577f31488b98bfe1ac
|
7
|
+
data.tar.gz: 520d585ccf14348ddb820a43f7550792bdeaf64ff8f8c4a61b6a9db685ab1c1fe794423e35624ffe672b4d65a830a5a0aeb04da2c28f015e282a9d025983e3b7
|
data/grammars/source.ats.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"ATS","scopeName":"source.ats","patterns":[{"include":"#
|
1
|
+
{"name":"ATS","scopeName":"source.ats","patterns":[{"include":"#block"},{"include":"#comment_rest"},{"include":"#comment_line"},{"include":"#comment_block"},{"include":"#embed"},{"include":"#operators"},{"include":"#quantifier_curly"},{"include":"#quantifier_square"},{"include":"#quantifier_arrow"},{"include":"#keywords"},{"include":"#keywords_types"},{"include":"#string"},{"include":"#char"},{"include":"#records"},{"include":"#tuples"},{"include":"#number"}],"repository":{"block":{"begin":"(?\u003c=where|=|^|then|else|\\$rec|\\$rec_t|\\$rec_vt)(?:\\s*){","end":"}","patterns":[{"include":"$self"}],"applyEndPatternLast":true},"char":{"name":"string.quoted.double","match":"(')([^\\\\]{0,1}|\\\\(\\\\|[abefpnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}))(')"},"comment_block":{"name":"comment.block","begin":"\\(\\*","end":"\\*\\)","patterns":[{"include":"#comment_block"}],"applyEndPatternLast":true},"comment_line":{"name":"comment.line.double-slash","match":"//.*$"},"comment_rest":{"name":"comment","begin":"////","end":".\\z","patterns":[{"match":".*"}],"applyEndPatternLast":true},"embed":{"name":"meta","begin":"(%{)","end":"(%})"},"keywords":{"name":"keyword","match":"(\\#|\\$)(\\w+)|\\b(castfn|and|andalso|assume|as|begin|break|case(\\+|-)?|class|continue|dynload|dyn|else|end|exception|extern|fix|fn|for|fun|if|implement|implmnt|primplement|primplmnt|infixl|infixr|infix|in|lam|let|llam|local|macdef|macrodef|method|modprop|modtype|module|nonfix|object|of|op|or|orelse|overload|par|postfix|praxi|prefix|prfn|prfun|prval|rec|sif|staif|staload|stavar|sta|struct|symelim|symintr|then|try|union|val(\\+|-)?|var|when|where|while|withprop|withtype|withviewtype|withview|with)\\b"},"keywords_types":{"name":"keyword","match":"(\\#|\\$)(\\w+)|\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|typedef|)\\b"},"number":{"name":"constant.numeric","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|~)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},"operators":{"name":"keyword.operator","match":"!=|!|%|\u0026\u0026|\u0026|\\*|\\+|-|--\u003e|-\u003e|/|:=|\u003c=|(?\u003c=\\s)\u003c|==\u003e|=\u003e|=|\u003e=|\u003e\u003e|\u003e|\\?|\\|\\||\\||~|\\[\\]"},"quantifier_arrow":{"name":"support.type","begin":"(?\u003c!\\s)\u003c","end":"\u003e"},"quantifier_curly":{"name":"support.type","begin":"({)","end":"(})"},"quantifier_square":{"name":"support.type","begin":"(\\[)","end":"(\\])"},"records":{"begin":"('|@)({)","end":"(})","patterns":[{"include":"$self"}]},"string":{"name":"string.quoted.double","begin":"(\")","end":"(\")","patterns":[{"include":"#string_escaped"}]},"string_escaped":{"name":"constant.character.escape","match":"\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})"},"tuples":{"begin":"('|@)\\(","end":"(\\))","patterns":[{"include":"$self"}]}}}
|
data/grammars/source.p4.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"P4","scopeName":"source.p4","patterns":[{"name":"comment.block.p4","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.p4"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.p4"}}},{"name":"string.quoted.double.p4","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.p4"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.p4"}}},{"name":"comment.line.p4","begin":"//","end":"\\n","beginCaptures":{"0":{"name":"comment.p4"}}},{"name":"storage.type.object.p4","match":"\\b(
|
1
|
+
{"name":"P4-16","scopeName":"source.p4","patterns":[{"name":"comment.block.p4","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.p4"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.p4"}}},{"name":"string.quoted.double.p4","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.p4"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.p4"}}},{"name":"comment.line.p4","begin":"//","end":"\\n","beginCaptures":{"0":{"name":"comment.p4"}}},{"name":"storage.type.object.p4","match":"\\b(struct|package|header|metadata|parser|transition|state|actions|action|table|key|control|extern|verify)\\b"},{"name":"storage.data.type.p4","match":"\\b(void|const|bool|varbit|int|typedef|tuple|enum)\\b"},{"name":"support.type.bit.p4","match":"bit(\u003c\\d+\u003e)"},{"name":"variable.language.p4","match":"\\b(hit|miss|latest|return|default)\\b"},{"name":"keyword.control.p4","match":"\\b(if|else if|else|return|hit|miss|true|false|inout|in|out|exit)\\b"},{"name":"keyword.operator.p4","match":"\\b(and|or)\\b"},{"name":"entity.name.type.p4","match":"\\b(exact|ternary|lpm|range|valid|mask|match_kind)\\b"},{"name":"storage.type.p4","match":"\\b(reads|actions|min_size|max_size|size|support_timeout|action_profile)\\b"},{"name":"storage.type.p4","match":"\\b(bytes|packets)\\b"},{"name":"entity.name.type.p4","match":"\\b(width|layout|attributes|type|static|result|direct|instance_count|min_width|saturating)\\b"},{"name":"entity.name.type.p4","match":"\\b(length|fields|max_length)\\b"},{"name":"meta.preprocessor.include.p4","match":"\\#include"},{"name":"meta.preprocessor.p4","match":"\\#ifndef|\\#ifdef|\\#if|\\#else|\\#endif|\\#elif"},{"name":"meta.preprocessor.define.p4","match":"\\#define"},{"name":"support.function.primitive.p4","match":"\\b(apply|valid|select|current|extract|add_header|copy_header|remove_header|modify_field|add_to_field|add|set_field_to_hash_index|truncate|drop|no_op|push|pop|count|meter|generate_digest|resubmit|recirculate|clone_ingress_pkt_to_ingress|clone_egress_pkt_to_ingress|clone_ingress_pkt_to_egress|clone_egress_pkt_to_egress|register_write|register_read)\\b"},{"name":"storage.type.annotation.p4","match":"@\\w+"},{"name":"support.any-method.p4","match":"[a-zA-Z_][0-9a-zA-Z_]*"},{"name":"constant.numeric.p4","match":"[\\+|-]?[0-9]+'[0-9]+"},{"name":"constant.numeric.p4","match":"0(x|X)[0-9a-fA-F]+"},{"name":"constant.numeric.p4","match":"\\dw\\d+"},{"name":"constant.numeric.p4","match":"0(b|B)[01]+"},{"name":"constant.numeric.p4","match":"[0-9]+"},{"name":"constant.language.p4","match":"\\b(true|false)\\b"}]}
|
data/grammars/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.22.
|
1
|
+
7.22.1
|
data/lib/linguist/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.22.
|
1
|
+
7.22.1
|
data/lib/linguist/language.rb
CHANGED
@@ -291,12 +291,11 @@ module Linguist
|
|
291
291
|
|
292
292
|
# If group name is set, save the name so we can lazy load it later
|
293
293
|
if attributes[:group_name]
|
294
|
-
@group = nil
|
295
294
|
@group_name = attributes[:group_name]
|
296
295
|
|
297
296
|
# Otherwise we can set it to self now
|
298
297
|
else
|
299
|
-
@
|
298
|
+
@group_name = self.name
|
300
299
|
end
|
301
300
|
end
|
302
301
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-linguist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.22.
|
4
|
+
version: 7.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cgi
|