mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
code_style: typo in s_extraGrammars
This commit is contained in:
parent
80017d8bd0
commit
0b6ecc0388
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ namespace SourceGit.Models
|
||||||
{
|
{
|
||||||
public static class GrammarUtility
|
public static class GrammarUtility
|
||||||
{
|
{
|
||||||
private static readonly ExtraGrammar[] s_extraGrammas =
|
private static readonly ExtraGrammar[] s_extraGrammars =
|
||||||
[
|
[
|
||||||
new ExtraGrammar("source.toml", ".toml", "toml.json"),
|
new ExtraGrammar("source.toml", ".toml", "toml.json"),
|
||||||
new ExtraGrammar("source.kotlin", ".kotlin", "kotlin.json"),
|
new ExtraGrammar("source.kotlin", ".kotlin", "kotlin.json"),
|
||||||
|
@ -39,7 +39,7 @@ namespace SourceGit.Models
|
||||||
else if (extension == ".kt" || extension == ".kts")
|
else if (extension == ".kt" || extension == ".kts")
|
||||||
extension = ".kotlin";
|
extension = ".kotlin";
|
||||||
|
|
||||||
foreach (var grammar in s_extraGrammas)
|
foreach (var grammar in s_extraGrammars)
|
||||||
{
|
{
|
||||||
if (grammar.Extension.Equals(extension, StringComparison.OrdinalIgnoreCase))
|
if (grammar.Extension.Equals(extension, StringComparison.OrdinalIgnoreCase))
|
||||||
return grammar.Scope;
|
return grammar.Scope;
|
||||||
|
@ -50,7 +50,7 @@ namespace SourceGit.Models
|
||||||
|
|
||||||
public static IRawGrammar GetGrammar(string scopeName, RegistryOptions reg)
|
public static IRawGrammar GetGrammar(string scopeName, RegistryOptions reg)
|
||||||
{
|
{
|
||||||
foreach (var grammar in s_extraGrammas)
|
foreach (var grammar in s_extraGrammars)
|
||||||
{
|
{
|
||||||
if (grammar.Scope.Equals(scopeName, StringComparison.OrdinalIgnoreCase))
|
if (grammar.Scope.Equals(scopeName, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue