lentil 1.5.7.0 → 1.5.8.0
raw patch · 10 files changed
+30/−15 lines, 10 filesdep ~megaparsecdep ~optparse-applicative
Dependency ranges changed: megaparsec, optparse-applicative
Files
- changes.txt +5/−0
- doc/usr/page.rst +1/−0
- lentil.cabal +3/−2
- src/Lentil/Parse/Syntaxes.hs +4/−2
- src/Main.hs +2/−2
- test/Lentil/HelpersSpec.hs +0/−2
- test/Lentil/Parse/IssueSpec.hs +0/−3
- test/Lentil/Parse/RunSpec.hs +3/−2
- test/Lentil/Parse/SourceSpec.hs +0/−2
- test/test-files/lang-comm/zig.zig +12/−0
changes.txt view
@@ -1,3 +1,8 @@+1.5.8.0+-------++- Added support for Zig language (`.zig`) (by Dmitry Bogatov).+ 1.5.7.0 -------
doc/usr/page.rst view
@@ -191,6 +191,7 @@ - Forth files (``.fs``, ``.fth``, ``.4th``) - YAML files (``.yaml``, ``.yml``) - LaTeX files (``.tex``)+- Zig files (``.zig``) - plain text files (``.txt``) If you want a file type ``.xyz`` to be recognised as one in the list above,
lentil.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: lentil-version: 1.5.7.0+version: 1.5.8.0 synopsis: frugal issue tracker description: minumum effort, cohesive issue tracker based on ubiquitous @TODO@s and @FIXME@s conventions.@@ -16,7 +16,7 @@ category: Development, Project Management stability: Stable build-type: Simple-tested-with: GHC==8.4.1, GHC==8.6.1, GHC==8.8.3+tested-with: GHC==8.4.1, GHC==8.6.1, GHC==8.8.3, GHC==9.4.3 extra-source-files: stack.yaml, test/test-files/lang-comm/clang.c, test/test-files/lang-comm/forth.fs,@@ -40,6 +40,7 @@ test/test-files/lang-comm/yaml.yml, test/test-files/lang-comm/text.txt, test/test-files/lang-comm/latex.tex,+ test/test-files/lang-comm/zig.zig, test/test-files/specific/contiguous.c, test/test-files/specific/cont-custom.c, test/test-files/specific/latin1.c,
src/Lentil/Parse/Syntaxes.hs view
@@ -14,7 +14,6 @@ import Lentil.Types import Text.Megaparsec-import Control.Applicative hiding (many) import Prelude import qualified System.FilePath as SF@@ -60,6 +59,7 @@ ([".java"], Just c), -- Java ([".glsl"], Just c), -- GL Shader ([".xrl"], Just c), -- FLEX+ ([".zig"], Just zig), ([".js"], Just javascript), ([".ts"], Just javascript), -- TypeScript ([".pas", ".pp", ".inc"], Just pascal),@@ -83,12 +83,14 @@ ([".tex"], Just latex), -- LaTeX, TeX ([".txt", ".md"], Just text) ] -haskell, c, javascript, pascal, python, ruby, perl, nix,+haskell, c, zig, javascript, pascal, python, ruby, perl, nix, xml, erlang, ocaml, rp, rust, sml, forth, rst, org, latex, text :: ParSource [CommentString] haskell = source $ StdSyntax ["--"] [("{-", "-}")] ClangLike ['"'] CommonChr ['\''] c = source $ StdSyntax ["//"] [("/*", "*/")]+ ClangLike ['"'] CommonChr ['\'']+zig = source $ StdSyntax ["//"] [] ClangLike ['"'] CommonChr ['\''] javascript = source $ StdSyntax ["//"] [("/*", "*/")] ClangLike ['"', '\''] CommonChr []
src/Main.hs view
@@ -44,8 +44,8 @@ short 'v' S.<> help "show version and copyright info" ) where- versionCopy = "\nlentil - frugal issue tracker, version 1.5.7.0\n\- \(C) 2015-2021 Francesco Ariis - http://www.ariis.it\n\+ versionCopy = "\nlentil - frugal issue tracker, version 1.5.8.0\n\+ \(C) 2015-2024 Francesco Ariis - http://www.ariis.it\n\ \released under the GNU General Public License v3\n"
test/Lentil/HelpersSpec.hs view
@@ -7,8 +7,6 @@ import Lentil.Helpers -import Prelude -- 7.8 hack- -- Parsing tests -- simple parser (choosable if we are at begin of line or else)
test/Lentil/Parse/IssueSpec.hs view
@@ -2,13 +2,10 @@ import Test.Hspec import Text.Megaparsec.Char-import Control.Applicative import Lentil.Types import Lentil.Parse.Issue import Lentil.Helpers--import Prelude -- 7.8 hack -- Parsing tests
test/Lentil/Parse/RunSpec.hs view
@@ -5,8 +5,6 @@ import Lentil.Types import Lentil.Parse.Run -import Prelude -- 7.8 hack- -- Parsing tests fileParser :: [Alias] -> [FlagWord] -> FilePath -> IO [Issue]@@ -119,3 +117,6 @@ it "parses a LaTeX source" $ fileParser [] [] "test/test-files/lang-comm/latex.tex" `shouldReturn` spt "test/test-files/lang-comm/latex.tex"+ it "parses a Zig source" $+ fileParser [] [] "test/test-files/lang-comm/zig.zig"+ `shouldReturn` spt "test/test-files/lang-comm/zig.zig"
test/Lentil/Parse/SourceSpec.hs view
@@ -7,8 +7,6 @@ import Lentil.Types import Lentil.Parse.Source -import Prelude -- 7.8 hack- -- Parsing tests -- simple parser
+ test/test-files/lang-comm/zig.zig view
@@ -0,0 +1,12 @@+// todo single+// comment+// Todo: single2++const std = @import("std") // import+var a3: [3][]const u8 = [_][]const u8{ "Hello", "Foo", "Bar" } // array++// TODO: block1+// TODO: block2 [tog]+++// end