Squashed commit of the following:

commit 95479c8ad744db48386a5c78e54ef8da80e9120b
Author: Chris Lane <chris@chris-allen-lane.com>
Date:   Wed Apr 28 12:26:32 2021 -0400

    chore(version): bump version to 4.2.1

commit 6956f51cae
Author: Chris Lane <chris@chris-allen-lane.com>
Date:   Wed Apr 28 12:24:21 2021 -0400

    fix(Makefile): `vendor-update`

    Update the `vendor-update` build target to run `go mod vendor` after
    updating dependencies.

commit 0aca411279
Author: Chris Lane <chris@chris-allen-lane.com>
Date:   Wed Apr 28 12:23:24 2021 -0400

    chore(deps): update dependencies

commit e847956b02
Author: Chris Lane <chris@chris-allen-lane.com>
Date:   Wed Apr 28 08:26:51 2021 -0400

    chore(deps): build updates

    - Upgrade `go` to `1.16.3`

    - Attempt to fix build errors regarding dependencies
This commit is contained in:
Chris Lane
2021-04-28 12:35:32 -04:00
parent 883a17092f
commit 55b18b4897
495 changed files with 16144 additions and 2927 deletions

View File

@ -6,14 +6,18 @@ import (
)
// Factor lexer.
var Factor = internal.Register(MustNewLexer(
var Factor = internal.Register(MustNewLazyLexer(
&Config{
Name: "Factor",
Aliases: []string{"factor"},
Filenames: []string{"*.factor"},
MimeTypes: []string{"text/x-factor"},
},
Rules{
factorRules,
))
func factorRules() Rules {
return Rules{
"root": {
{`#!.*$`, CommentPreproc, nil},
Default(Push("base")),
@ -111,5 +115,5 @@ var Factor = internal.Register(MustNewLexer(
{`;\s`, Keyword, Pop(1)},
{`\S+`, NameFunction, nil},
},
},
))
}
}

View File

@ -6,14 +6,18 @@ import (
)
// Fish lexer.
var Fish = internal.Register(MustNewLexer(
var Fish = internal.Register(MustNewLazyLexer(
&Config{
Name: "Fish",
Aliases: []string{"fish", "fishshell"},
Filenames: []string{"*.fish", "*.load"},
MimeTypes: []string{"application/x-fish"},
},
Rules{
fishRules,
))
func fishRules() Rules {
return Rules{
"root": {
Include("basic"),
Include("data"),
@ -61,5 +65,5 @@ var Fish = internal.Register(MustNewLexer(
{`\d+`, LiteralNumber, nil},
Include("root"),
},
},
))
}
}

View File

@ -6,7 +6,7 @@ import (
)
// Forth lexer.
var Forth = internal.Register(MustNewLexer(
var Forth = internal.Register(MustNewLazyLexer(
&Config{
Name: "Forth",
Aliases: []string{"forth"},
@ -14,7 +14,11 @@ var Forth = internal.Register(MustNewLexer(
MimeTypes: []string{"application/x-forth"},
CaseInsensitive: true,
},
Rules{
forthRules,
))
func forthRules() Rules {
return Rules{
"root": {
{`\s+`, Text, nil},
{`\\.*?\n`, CommentSingle, nil},
@ -36,5 +40,5 @@ var Forth = internal.Register(MustNewLexer(
"stringdef": {
{`[^"]+`, LiteralString, Pop(1)},
},
},
))
}
}

View File

@ -6,7 +6,7 @@ import (
)
// Fortran lexer.
var Fortran = internal.Register(MustNewLexer(
var Fortran = internal.Register(MustNewLazyLexer(
&Config{
Name: "Fortran",
Aliases: []string{"fortran"},
@ -14,7 +14,11 @@ var Fortran = internal.Register(MustNewLexer(
MimeTypes: []string{"text/x-fortran"},
CaseInsensitive: true,
},
Rules{
fortranRules,
))
func fortranRules() Rules {
return Rules{
"root": {
{`^#.*\n`, CommentPreproc, nil},
{`!.*\n`, Comment, nil},
@ -43,5 +47,5 @@ var Fortran = internal.Register(MustNewLexer(
{`[+-]?\d*\.\d+([ed][-+]?\d+)?(_[a-z]\w+)?`, LiteralNumberFloat, nil},
{`[+-]?\d+\.\d*([ed][-+]?\d+)?(_[a-z]\w+)?`, LiteralNumberFloat, nil},
},
},
))
}
}

View File

@ -6,14 +6,18 @@ import (
)
// Fsharp lexer.
var Fsharp = internal.Register(MustNewLexer(
var Fsharp = internal.Register(MustNewLazyLexer(
&Config{
Name: "FSharp",
Aliases: []string{"fsharp"},
Filenames: []string{"*.fs", "*.fsi"},
MimeTypes: []string{"text/x-fsharp"},
},
Rules{
fsharpRules,
))
func fsharpRules() Rules {
return Rules{
"escape-sequence": {
{`\\[\\"\'ntbrafv]`, LiteralStringEscape, nil},
{`\\[0-9]{3}`, LiteralStringEscape, nil},
@ -90,5 +94,5 @@ var Fsharp = internal.Register(MustNewLexer(
{`"""B?`, LiteralString, Pop(1)},
{`"`, LiteralString, nil},
},
},
))
}
}