mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-06 11:55:27 -07:00
change from curly braces to square brackets
This commit is contained in:
1 parent
71020baa5e
commit
dc609d2fff
1 file changed
+4
-4
@@ -245,9 +245,9 @@ showPGF p =
|
|||||||
n_fields <- peekElemOff pcounts 0
|
n_fields <- peekElemOff pcounts 0
|
||||||
forM [0..n_fields-1] $ \i -> do
|
forM [0..n_fields-1] $ \i -> do
|
||||||
pgf_get_lincat_field_internal val i >>= peekText
|
pgf_get_lincat_field_internal val i >>= peekText
|
||||||
let def = text "lincat" <+> (text name <+> char '=' <+> char '{' $$
|
let def = text "lincat" <+> (text name <+> char '=' <+> char '[' $$
|
||||||
nest 2 (vcat (map text fields)) $$
|
nest 2 (vcat (map text fields)) $$
|
||||||
char '}')
|
char ']')
|
||||||
modifyIORef ref $ (\doc -> doc $$ def)
|
modifyIORef ref $ (\doc -> doc $$ def)
|
||||||
|
|
||||||
ppLins c = unsafePerformIO $ do
|
ppLins c = unsafePerformIO $ do
|
||||||
@@ -271,9 +271,9 @@ showPGF p =
|
|||||||
syms <- forM [0..n_seqs-1] $ \j ->
|
syms <- forM [0..n_seqs-1] $ \j ->
|
||||||
bracket (pgf_print_lin_seq_internal val i j) free $ \c_text -> do
|
bracket (pgf_print_lin_seq_internal val i j) free $ \c_text -> do
|
||||||
fmap text (peekText c_text)
|
fmap text (peekText c_text)
|
||||||
let def = text "lin" <+> (sig <+> char '=' <+> char '{' $$
|
let def = text "lin" <+> (sig <+> char '=' <+> char '[' $$
|
||||||
nest 2 (vcat syms) $$
|
nest 2 (vcat syms) $$
|
||||||
char '}')
|
char ']')
|
||||||
modifyIORef ref $ (\doc -> doc $$ def)
|
modifyIORef ref $ (\doc -> doc $$ def)
|
||||||
|
|
||||||
-- | The abstract language name is the name of the top-level
|
-- | The abstract language name is the name of the top-level
|
||||||
|
|||||||
Reference in new issue
Block a user