1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-07 16:22:14 +03:00
juvix/tests/positive
Jan Mas Rovira b7b0e1039e
Store source location of (almost) everything (#2174)
- Closes #2162 

This pr improves formatting of source files with comments.
The concrete ast now stores location information of almost all keywords.
We do not store location information of parentheses. Comments will be
pushed out of parentheses by the formatter.
E.g.
```
( -- comment
 f x)
```
will become
```
-- comment
(f x)
```

This only occurs if the comment appears just after the `(`. So the
following will be respected
```
(f --comment
x)
```

---------

Co-authored-by: Jonathan Cubides <jonathan.cubides@uib.no>
2023-06-07 19:57:51 +02:00
..
265 Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
272 Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
BuiltinsMultiImport Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
BuiltinsMultiOpenImport Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
Dependencies Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
FancyPaths Support more paths (#2000) 2023-04-19 15:56:48 +01:00
ImportAsOpen Modify open import syntax (#2098) 2023-05-17 11:08:48 +02:00
Imports Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
ImportShadow Modify open import syntax (#2098) 2023-05-17 11:08:48 +02:00
Internal Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
issue1333 Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
issue1466 Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
issue1693 Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
issue1731 Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
issue1879 Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
issue2163 Properly scan imports inside local modules (#2165) 2023-06-02 12:12:02 +02:00
NoDependencies Support module imports in Juvix REPL (#2029) 2023-05-08 12:23:15 +02:00
QualifiedConstructor Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
QualifiedImports Qualified imports (#2004) 2023-04-14 17:37:23 +02:00
QualifiedSymbol Improve formatting of comments (#2022) 2023-04-24 16:46:05 +02:00
QualifiedSymbol2 Make format command's filepath optional (#2028) 2023-04-27 17:33:08 +02:00
Reachability Update standard library for better readability, efficiency and iterator use (#2153) 2023-06-01 18:21:03 +02:00
StdlibImport Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
StdlibList Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
Termination Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
UsingHiding Allow symbol renaming inside using {..} (#2109) 2023-05-22 12:24:29 +02:00
Ape.juvix Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
Axiom.juvix Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
Builtins.juvix Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
BuiltinsBool.juvix Fix: pprint positive kw for data types (#1980) 2023-04-05 16:40:46 +02:00
Format.juvix Store source location of (almost) everything (#2174) 2023-06-07 19:57:51 +02:00
FormatPragma.juvix Add the format pragma (#2150) 2023-05-31 23:30:59 +02:00
IdInType.juvix Arity check types and functions (->) (#2049) 2023-05-10 13:07:03 +01:00
Inductive.juvix Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
InductivePipes.juvix Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
Iterators.juvix Iterator syntax (#2126) 2023-05-30 15:30:11 +02:00
Judoc.juvix Add syntax for Judoc blocks (#2102) 2023-05-19 14:05:32 +02:00
juvix.yaml Rename MiniJuvix to Juvix (#259) 2022-07-08 13:59:45 +02:00
LambdaCalculus.juvix Fix ordering of statements in Abstract -> Internal (#2040) 2023-05-15 13:02:09 +02:00
LetShadow.juvix Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
Literals.juvix Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
LocalSynonym.juvix Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
MultiParams.juvix Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
MutualLet.juvix Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
MutualType.juvix Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
NestedPatterns.juvix Fix Makefile target bugs for formatting and type Checking Juvix files (#2057) 2023-05-19 17:33:56 +02:00
Operators.juvix Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
Parsing.juvix Allow nested block comments (#2075) 2023-05-15 09:57:23 +02:00
Polymorphism.juvix Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
PolymorphismHoles.juvix Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
Pragmas.juvix Iterator syntax (#2126) 2023-05-30 15:30:11 +02:00
ShadowPublicOpen.juvix Fix: format juvix files in test/positive (#1978) 2023-04-12 10:07:01 +02:00
SignatureWithBody.juvix Finish the new pretty printing algorithm and delete the old one (#2151) 2023-06-02 13:02:35 +02:00
Symbols.juvix Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00
TypeAlias.juvix Add syntax keyword (#2107) 2023-05-22 12:50:07 +02:00