mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
1213: org mode highlight testing
This commit is contained in:
parent
e571cb553b
commit
cc6cf48256
38
tests/syntax-tests/highlighted/orgmode/test.org
Normal file
38
tests/syntax-tests/highlighted/orgmode/test.org
Normal file
@ -0,0 +1,38 @@
|
||||
[38;2;253;151;31m*[0m[38;2;253;151;31m This is header[0m
|
||||
[38;2;253;151;31m**[0m[38;2;253;151;31m sub header[0m
|
||||
[38;2;253;151;31m***[0m[38;2;253;151;31m sub sub header[0m
|
||||
[38;2;253;151;31m****[0m[38;2;253;151;31m sub sub sub header[0m
|
||||
|
||||
[38;2;253;151;31m*[0m[38;2;253;151;31m Table representation[0m
|
||||
[38;2;248;248;242m| Name | Age |[0m
|
||||
[38;2;248;248;242m|---------+-----|[0m
|
||||
[38;2;248;248;242m| Milli | 23 |[0m
|
||||
[38;2;248;248;242m| Vanilli | 22 |[0m
|
||||
|
||||
[38;2;253;151;31m*[0m[38;2;253;151;31m Spreadsheets[0m
|
||||
[38;2;248;248;242m| n | n + 2 | n ^ 2 |[0m
|
||||
[38;2;248;248;242m|---+-------+-------|[0m
|
||||
[38;2;248;248;242m| 1 | 3 | 1 |[0m
|
||||
[38;2;248;248;242m| 2 | 4 | 4 |[0m
|
||||
[38;2;248;248;242m| 3 | 5 | 9 |[0m
|
||||
[38;2;248;248;242m#+[0m[38;2;249;38;114mTBLFM[0m[38;2;248;248;242m: [0m[38;2;230;219;116m$2=$1+2::$3=$1*$1[0m
|
||||
|
||||
[38;2;253;151;31m*[0m[38;2;253;151;31m Source Code[0m
|
||||
|
||||
[38;2;248;248;242m#+[0m[38;2;249;38;114mBEGIN_SRC[0m[38;2;248;248;242m [0m[38;2;190;132;255mrust[0m
|
||||
[38;2;174;129;255m # recursive fibonacci[0m
|
||||
[38;2;174;129;255m fn fib(n: u32) -> u32 {[0m
|
||||
[38;2;174;129;255m match n {[0m
|
||||
[38;2;174;129;255m 0 | 1 => 1,[0m
|
||||
[38;2;174;129;255m _ => fib(n - 1) + fib(n - 2),[0m
|
||||
[38;2;174;129;255m }[0m
|
||||
[38;2;174;129;255m }[0m
|
||||
[38;2;248;248;242m#+[0m[38;2;249;38;114mEND_SRC[0m
|
||||
|
||||
[38;2;253;151;31m*[0m[38;2;253;151;31m ToDo and Checkboxes Example[0m
|
||||
[38;2;253;151;31m**[0m[38;2;253;151;31m [0m[38;2;249;38;114mDONE[0m[38;2;253;151;31m Write source example[0m
|
||||
[38;2;253;151;31m**[0m[38;2;253;151;31m [0m[38;2;249;38;114mTODO[0m[38;2;253;151;31m Generate highlighted example [1/3][0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;249;38;114m[X][0m[38;2;248;248;242m run update script[0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;249;38;114m[-][0m[38;2;248;248;242m get code review[0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;249;38;114m[ ][0m[38;2;248;248;242m merge into master[0m
|
||||
|
38
tests/syntax-tests/source/orgmode/test.org
Normal file
38
tests/syntax-tests/source/orgmode/test.org
Normal file
@ -0,0 +1,38 @@
|
||||
* This is header
|
||||
** sub header
|
||||
*** sub sub header
|
||||
**** sub sub sub header
|
||||
|
||||
* Table representation
|
||||
| Name | Age |
|
||||
|---------+-----|
|
||||
| Milli | 23 |
|
||||
| Vanilli | 22 |
|
||||
|
||||
* Spreadsheets
|
||||
| n | n + 2 | n ^ 2 |
|
||||
|---+-------+-------|
|
||||
| 1 | 3 | 1 |
|
||||
| 2 | 4 | 4 |
|
||||
| 3 | 5 | 9 |
|
||||
#+TBLFM: $2=$1+2::$3=$1*$1
|
||||
|
||||
* Source Code
|
||||
|
||||
#+BEGIN_SRC rust
|
||||
# recursive fibonacci
|
||||
fn fib(n: u32) -> u32 {
|
||||
match n {
|
||||
0 | 1 => 1,
|
||||
_ => fib(n - 1) + fib(n - 2),
|
||||
}
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
* ToDo and Checkboxes Example
|
||||
** DONE Write source example
|
||||
** TODO Generate highlighted example [1/3]
|
||||
- [X] run update script
|
||||
- [-] get code review
|
||||
- [ ] merge into master
|
||||
|
Loading…
x
Reference in New Issue
Block a user