Skip to content

Commit

Permalink
Fix #2924
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto committed Jul 30, 2024
1 parent 178bc53 commit d1e5388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import Juvix.Prelude.FlatParse qualified as FP
import Juvix.Prelude.FlatParse.Lexer qualified as L

scanBSImports :: Path Abs File -> ByteString -> Maybe ScanResult
scanBSImports fp = fromResult . scanner fp
scanBSImports fp
| isJuvixFile fp = fromResult . scanner fp
| otherwise = const Nothing
where
fromResult :: Result () ok -> Maybe ok
fromResult = \case
Expand Down
2 changes: 2 additions & 0 deletions tests/positive/Markdown/Test.juvix.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Example

What is important is seldom urgent.

A Juvix Markdown file name ends with `.juvix.md`. This kind of file must contain
a module declaration at the top, as shown below ---in the first code block.

Expand Down

0 comments on commit d1e5388

Please sign in to comment.