Commit Graph

673 Commits

Author SHA1 Message Date
Darren Burns
ee8eb40e0f Updating tests to support token referencing 2022-02-03 16:07:09 +00:00
Darren Burns
df6d04cb8c Passing through token reference information 2022-02-03 15:55:13 +00:00
Darren Burns
33e8bc4584 Highlighting correct span of code when variable of incorrect type is used 2022-02-03 14:19:54 +00:00
Darren Burns
c18b1b9fed Tidy up Token.with_location 2022-02-03 13:17:59 +00:00
Darren Burns
9dfc1ddabb Variable reference tokens location updated to usage location instead of definition location 2022-02-03 13:16:11 +00:00
Darren Burns
6b1554d970 Fix issue with css variables with multiple values 2022-02-03 12:43:05 +00:00
Will McGugan
b2974aad6e default styles 2022-02-03 11:56:12 +00:00
Darren Burns
a0a2a0666f Fix typo in error message 2022-02-03 11:03:02 +00:00
Darren Burns
d5f90d651a Better error message for undefined variables 2022-02-03 11:00:08 +00:00
Darren Burns
a345c55140 Remove and irrelevant TODO comment 2022-02-03 10:29:53 +00:00
Darren Burns
d21bd82406 Adding a test around the whitespace trimming logic 2022-02-03 10:27:01 +00:00
Darren Burns
04181dc0b1 Trimming leading whitespace from variable definitions when storing their tokens 2022-02-03 10:17:46 +00:00
Darren Burns
62d24650c4 Small change to reduce nesting in variable substitution 2022-02-02 15:52:04 +00:00
Darren Burns
65a6b8d261 Substitution variables 2022-02-02 15:49:16 +00:00
Will McGugan
c90cdd4ec8 implement inline styles 2022-02-02 15:44:43 +00:00
Darren Burns
ac9e3cdfff Re-add support for variable references 2022-02-02 10:59:17 +00:00
Darren Burns
6587ba257f Parsing variable values as individual tokens 2022-02-02 10:49:09 +00:00
Darren Burns
19b835b8a1 Merge pull request #250 from Textualize/css-variables-tokenise
Tokenise CSS variables
2022-02-02 09:16:20 +00:00
Darren Burns
143253b985 Changes tokenisation of variables to be arbitrary text instead of tokenising to data types 2022-02-01 15:43:20 +00:00
Darren Burns
d967de6926 Tidy up a docstring 2022-02-01 13:50:48 +00:00
Darren Burns
d86ec1889e Variable references 2022-02-01 13:42:51 +00:00
Darren Burns
ac81229564 Renaming some tests to improve clarity 2022-02-01 13:23:19 +00:00
Darren Burns
6da19868a4 Extracting some common regexes 2022-02-01 13:21:26 +00:00
Darren Burns
be091582ed Additional tests for variables with multiple values/comments 2022-02-01 13:07:32 +00:00
Darren Burns
9d5d6b1008 Renaming "declaration" tokens to differentiate between rule and variable declarations 2022-02-01 12:37:22 +00:00
Darren Burns
a99d60f9f8 Tokenising variable declarations 2022-02-01 11:52:15 +00:00
Darren Burns
ea2819f65b Tokenising variable declarations 2022-02-01 11:51:10 +00:00
Darren Burns
37668779da tests/test_css_parse.py -> tests/css/test_parse.py 2022-02-01 10:09:24 +00:00
Darren Burns
4d38c0d324 Merge pull request #236 from Textualize/app-run-loop
Allow user to supply loop to App.run, ensure it closes
2022-01-31 15:47:23 +00:00
Darren Burns
88f7fe72ce Add type of AbstractEventLoop to App.run docstirng 2022-01-31 15:15:49 +00:00
Darren Burns
540b0a4f17 Use uv_loop.new_event_loop() to create loop if user doesnt supply one 2022-01-31 14:59:50 +00:00
Darren Burns
e2ee2aac68 Merge branch 'css' of github.com:willmcgugan/textual into vertical-layout 2022-01-31 14:44:25 +00:00
Darren Burns
9af2ca2f22 Merge branch 'css' of github.com:willmcgugan/textual into app-run-loop 2022-01-31 14:42:47 +00:00
Will McGugan
9e55d4caff Merge pull request #246 from Textualize/tab-underline
Underline bar renderable
2022-01-31 14:22:16 +00:00
Will McGugan
baae995f54 merge main 2022-01-31 14:20:29 +00:00
Darren Burns
65eb1b0b4f Using console.get_style, adding test ensuring style applies 2022-01-31 14:13:49 +00:00
Darren Burns
776284ddd0 Ensure we clamp range properly, passing Styles directly 2022-01-31 14:02:16 +00:00
Will McGugan
cfefb36ee4 Update for windows 2022-01-31 14:00:54 +00:00
Will McGugan
74131e025f Merge branch 'windows-driver' into main 2022-01-31 13:59:46 +00:00
Will McGugan
4258594151 changelog 2022-01-31 13:58:37 +00:00
Will McGugan
a32a4cc2ee Merge pull request #239 from Textualize/windows-driver
Windows driver
2022-01-31 13:58:12 +00:00
Darren Burns
67afb032f8 Merge branch 'css' of github.com:willmcgugan/textual into tab-underline 2022-01-31 13:04:14 +00:00
Darren Burns
5651e97a64 Underline bar renderable 2022-01-31 13:03:48 +00:00
Will McGugan
b21a01dfe1 Warning about changes v0.1.15 2022-01-30 14:30:53 +00:00
Darren Burns
9e10f38d6b Fixing issues with start and end of bar 2022-01-28 16:55:09 +00:00
Will McGugan
1b8d7d184e version bump 2022-01-28 16:14:13 +00:00
Darren Burns
b6d7e93542 UnderlineBar component 2022-01-28 15:30:59 +00:00
Will McGugan
0e1ce3ab52 fix console 2022-01-28 11:37:06 +00:00
Will McGugan
32a3bea47f tidy and comment 2022-01-28 11:29:55 +00:00
Will McGugan
ffcbe4ba1e discard console param 2022-01-28 11:21:14 +00:00