Skip to content

Commit

Permalink
fixes #58 (string containing =)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Jan 19, 2022
1 parent 0c8282f commit fe7e3d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions data/dconf.settings
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,6 @@ world-clocks=[{'location': <(uint32 2, <('Houston', 'KHOU', false, [(0.517271957
[org/gnome/shell/extensions/arcmenu]
hot-corners='Disabled'
recently-installed-apps=['RollerCoaster Tycoon 3 Platinum!.desktop', 'RollerCoaster Tycoon Deluxe.desktop', 'RollerCoaster Tycoon 2 Triple Thrill Pack.desktop', 'American Truck Simulator.desktop', 'Halo The Master Chief Collection.desktop', 'Bejeweled 3.desktop']

[org/gnome/evolution-data-server/calendar/list-of-equal]
reminders-snoozed=['=']
4 changes: 4 additions & 0 deletions output/dconf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,9 @@ with lib.hm.gvariant;
recently-installed-apps = [ "RollerCoaster Tycoon 3 Platinum!.desktop" "RollerCoaster Tycoon Deluxe.desktop" "RollerCoaster Tycoon 2 Triple Thrill Pack.desktop" "American Truck Simulator.desktop" "Halo The Master Chief Collection.desktop" "Bejeweled 3.desktop" ];
};

"org/gnome/evolution-data-server/calendar/list-of-equal" = {
reminders-snoozed = [ "=" ];
};

};
}
2 changes: 1 addition & 1 deletion src/DConf.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ vString parser = try $ do
where
single = many1 (string "'") *> parser inputs (string "'")
double = many1 (char '"') *> parser (inputs <|> string "'") (char '"')
tokens = many1 <$> [alphaNum, space] ++ (char <$> "$!&+-_()[]{},#@\\")
tokens = many1 <$> [alphaNum, space] ++ (char <$> "=$!&+-_()[]{},#@\\")
files = many1 . char <$> ":/."
shorts = many1 . char <$> "<>"
inputs = choice (tokens ++ files ++ shorts)
Expand Down

0 comments on commit fe7e3d9

Please sign in to comment.