packages feed

lentil 1.5.3.2 → 1.5.4.0

raw patch · 7 files changed

+34/−8 lines, 7 filesdep ~hspecdep ~mtl

Dependency ranges changed: hspec, mtl

Files

changes.txt view
@@ -1,3 +1,10 @@+1.5.4.0+-------++- released gio 24 mar 2022, 12:50:42+- added support for `LaTeX` files (patch by Damien Couroussé, many thanks!)+- bump text+ 1.5.3.2 ------- 
doc/usr/page.rst view
@@ -185,6 +185,7 @@ - R files (``.r``, ``.R``) - Forth files (``.fs``, ``.fth``, ``.4th``) - YAML files (``.yaml``, ``.yml``)+- LaTeX files (``.tex``) - plain text files (``.txt``)  If you want a file type ``.xyz`` to be recognised as one in the list above,
lentil.cabal view
@@ -1,5 +1,5 @@ name:                lentil-version:             1.5.3.2+version:             1.5.4.0 synopsis:            frugal issue tracker description:         minumum effort, cohesive issue tracker based on                      ubiquitous @TODO@s and @FIXME@s conventions.@@ -38,6 +38,7 @@                      test/test-files/lang-comm/org-mode.org,                      test/test-files/lang-comm/yaml.yml,                      test/test-files/lang-comm/text.txt,+                     test/test-files/lang-comm/latex.tex,                      test/test-files/specific/contiguous.c,                      test/test-files/specific/cont-custom.c,                      test/test-files/specific/xyz.xyz,@@ -77,10 +78,10 @@                        megaparsec >= 8.0 && < 9.3,                        mtl == 2.2.*,                        natural-sort==0.1.*,-                       optparse-applicative >= 0.16 && < 0.17,+                       optparse-applicative >= 0.16 && < 0.18,                        regex-tdfa >= 1.2 && < 1.4,                        semigroups >= 0.18 && < 0.21,-                       text==1.2.*,+                       text >=1.2 && <2.1,                        terminal-progress-bar==0.4.*   other-modules:       Lentil.Types, Lentil.Args, Lentil.File, Lentil.Print,                        Lentil.Query, Lentil.Export, Lentil.Parse.Source,@@ -113,10 +114,10 @@                        megaparsec >= 8.0 && < 9.3,                        mtl == 2.2.*,                        natural-sort==0.1.*,-                       optparse-applicative >= 0.16 && < 0.17,+                       optparse-applicative >= 0.16 && < 0.18,                        regex-tdfa >= 1.2 && < 1.4,                        semigroups >= 0.18 && < 0.21,-                       text==1.2.*,+                       text >=1.2 && <2.1,                        terminal-progress-bar==0.4.*                        -- same as above, plus hspec                        , hspec      >= 2.3 && < 2.10
src/Lentil/Parse/Syntaxes.hs view
@@ -80,10 +80,11 @@               ([".r"],                  Just rp), -- R language               ([".fs", ".fth", ".4th"], Just forth), -- forth               ([".yaml", ".yml"],       Just perl), -- YAML+              ([".tex"],                Just latex), -- LaTeX, TeX               ([".txt", ".md"],         Just text) ]  haskell, c, javascript, pascal, python, ruby, perl, nix,-    xml, erlang, ocaml, rp, rust, sml, forth, rst, org,+    xml, erlang, ocaml, rp, rust, sml, forth, rst, org, latex,     text :: ParSource [CommentString] haskell    = source $ StdSyntax ["--"] [("{-", "-}")]                                 ClangLike ['"'] CommonChr ['\'']@@ -120,6 +121,11 @@              --      paragraphs. How to implement this without breaking other              --      parsers? org        = source OrgModeSyntax+latex      = source $ StdSyntax ["%:" -- TeXworks tags+                                , "%" -- single-line comments+                                ]+                                [] -- Some packages provide support for multi-line comments, but there is no support for multi-line comments, even if some packages provide support for.+                                ClangLike ['"'] CommonChr [] text       = (:[]) . MultiLine 1 <$> many anySingle  
src/Main.hs view
@@ -37,7 +37,7 @@                                    short 'v'      S.<>                                    help "show version and copyright info" )     where-          versionCopy = "\nlentil - frugal issue tracker, version 1.5.3.2\n\+          versionCopy = "\nlentil - frugal issue tracker, version 1.5.4.0\n\                         \(C) 2015-2021 Francesco Ariis - http://www.ariis.it\n\                         \released under the GNU General Public License v3\n" 
test/Lentil/Parse/RunSpec.hs view
@@ -112,4 +112,6 @@     it "parses a YAML source" $         fileParser [] [] "test/test-files/lang-comm/yaml.yml"             `shouldReturn` spt "test/test-files/lang-comm/yaml.yml"-+    it "parses a LaTeX source" $+        fileParser [] [] "test/test-files/lang-comm/latex.tex"+            `shouldReturn` spt "test/test-files/lang-comm/latex.tex"
+ test/test-files/lang-comm/latex.tex view
@@ -0,0 +1,9 @@+% todo single comment+comment+%: TODO single2++ string+++%  todo block1+%       todo  block2 [tog]