summaryrefslogtreecommitdiffstats
path: root/lexer
AgeCommit message (Collapse)Author
2020-06-09Millimeter support for distance (#1144)nick87720z
2020-05-17Support rasi config character type options (#1131)Jason Kim
* style: remove extra space * feat: handle xrm_Char in config parser Handle the `xrm_Char` case in the (rasi theme) config file parser. This should properly handle configuration like ``` matching-negate-char: "\0"; ``` and ``` matching-negate-char: "-"; ``` * refactor: don't handle mem in xrm_Char case `mem` shouldn't ever be set when `XrmOption` is `type` `xrm_Char`. Therefore, there is no need to check it and free it. Remove that logic. * refactor: further condense logic * style: s/Everythin/Everything/ * style: s/parsing an section/parsing a section/ ...and missing period. * feat(lexer): add CHAR token Add a `CHAR` token that takes things of the form `'<char>'` or some specific backslash escape sequences like `'\''` and `'\0'`. For now, save it as a `T_STRING`. * refactor: define char property type * feat(parser): add cval and T_CHAR * refactor: use char property for xrm_Char Instead of using strings for property elements of type char, use characters, which were recently added to the grammar.
2020-04-26[Test] Fix compiler warning, theme test (bug in lexer) and more.Dave Davenport
2020-04-24[Themes] add calc() support to distance in theme format. (#1105)Dave Davenport
* Initial test to allow math in distances. Support + and - Needs spaces around + and -. * [THEME] Fix printing theme with math in distance. * [Theme] use calc() syntax. * [Theme] Add * and / to calc(). * [Theme] Fix the precedense ordering in parsing. Also avoid making copies. * [Theme] Don't print unneeded (). * [Theme] Add modulo to calc.
2019-09-20Issue893: Add support for @media in the theme format. (#1015)Dave Davenport
* [Lexer] Add support for @media. Issue: #893 * [Theme] @media limit to px. * [Theme@Media] add *{} support. * [Theme@Media] Add support for monitor-id media. * [Theme@Media] Code cleanup. * [Theme@Media] Add min/max-aspect-ratio. * [Theme@Media] Remove some debug output Fixes: #893
2019-04-19Use g_list_free_full()Quentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-04-19Correctly include config.h firstQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-03-21[Lexer] Fix nested () in variable default field.Dave Davenport
- var ( a, rgba(0,0,0,0)) was broke Fixes: #936
2019-01-29[Theme3.0] Change reference to use the CSS like var() syntax.Dave Davenport
Supports defaults var(name, default); var(name); Where default can be another property. (https://www.w3schools.com/css/css3_variables.asp) This deprecates the @name syntax. Fixes: #876
2019-01-29[GrammarParser] Fix memory leak of Property after parsing config entry.Dave Davenport
2018-07-21[Lexer] Remove Ambiguity in parser on empty input.Dave Davenport
2018-07-15[Lexer] Only allow configuration blocks before theme.Dave Davenport
2018-07-10[Tests] Fix window test.Dave Davenport
2018-07-09[Lexer] Also allow non-capitalized environment variablesDave Davenport
2018-07-09[Lexer] Add support for environment variables.Dave Davenport
You can do ${TEST} to parse the content of TEST. This will be fed into the lexer again, and should parse all properties.
2018-06-09Add an generic icon fetcher that can be used by any widget and re-uses the ↵Dave Davenport
main threadpool. Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool. * Make threadpool more generic usable. * Add generic icon fetcher, that caches icons. * Make DRUN use this fetcher. * Add icon widget. #809
2018-04-28[Lexer] Allow quoted utf8 string in list type.Dave Davenport
2018-04-28[Lexer] Make not finding a configuration option a warning, not an error.Dave Davenport
2017-11-23Correct spelling mistakes. (#722)Edward Betts
2017-11-05Add the prompt colon to the default theme.Dave Davenport
- Fix dumping of theme localization of the decimal-point. Force it to be always a '.'.
2017-10-30[ThemeParser] Give a more detailed error when only 7 elements are specified ↵Dave Davenport
in argb syntax.
2017-10-22[Lexer/Parser] Make the '#' before element optional.Dave Davenport
2017-09-18Add @theme import command, that resets the current theme.Dave Davenport
2017-09-18small update to default themeDave Davenport
2017-09-07Allow 0 in padding when passing more then 1 argument.Dave Davenport
2017-09-07Alias 'color' property name to 'text-color'Dave Davenport
2017-09-06Add support for multiple selectors. #dummy0, dummy1 {}Dave Davenport
2017-09-06Flatten hierarchy, don't inherit by default.Dave Davenport
* add keyword inherit to language parser and theme structure.
2017-09-05Add `ch` as size unit.Dave Davenport
2017-06-20Do better error reporting on configuration entries in rasi format.Dave Davenport
2017-06-20Support a config.rasi configuration file in the new formatDave Davenport
2017-06-14Add extra check for rofi_theme_parse_prepare_fileDave Davenport
2017-06-14Add list property test, allow empty lists.Dave Davenport
2017-06-13Initialize all fields in hsl_to_rgb conversionDave Davenport
2017-06-07Fix parsing old themes from rofi-themes repo.Dave Davenport
2017-06-07Support empty strings as property.Dave Davenport
2017-06-02Replace g_log by g_debugDave Davenport
2017-06-02Remove toupper from lexer.c replace by glib equiv.Dave Davenport
2017-06-02Make matching keywords like Vertical case-insensitive add test.Dave Davenport
- Make keywords like dash, horizontal, etc case-insensitive. - Add test for orientation property.
2017-06-02Change Padding to RofiPaddingDave Davenport
2017-06-02Change Orientation enum to RofiOrientation.Dave Davenport
2017-06-02Change Distance struct to RofiDistance.Dave Davenport
2017-06-02Change PixelWidth to RofiPixelUnit.Dave Davenport
2017-06-02Rename HL_ to ROFI_HL_ and fix box test.Dave Davenport
2017-06-02Add orientation property.Dave Davenport
2017-05-28Allow textbox to be added in themeDave Davenport
2017-05-28Merge remote-tracking branch 'origin/master' into barviewDave Davenport
2017-05-28Add strings.h to lexer file for strncasecmp.Dave Davenport
2017-05-25Allow interface to be dynamically changed.Dave Davenport
2017-05-22[Theme] Add small caps options (not working?)Dave Davenport