mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	Merge branch 'master' into master
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							| @@ -58,6 +58,11 @@ jobs: | ||||
|       with: | ||||
|         command: test | ||||
|         args: --release | ||||
|     - name: Run ignored-by-default unit tests with new syntaxes and themes | ||||
|       uses: actions-rs/cargo@v1 | ||||
|       with: | ||||
|         command: test | ||||
|         args: --release -- --ignored | ||||
|     - name: Syntax highlighting regression test | ||||
|       run: tests/syntax-tests/regression_test.sh | ||||
|     - name: List of languages | ||||
|   | ||||
							
								
								
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							| @@ -200,3 +200,9 @@ | ||||
| [submodule "assets/syntaxes/02_Extra/Ninja"] | ||||
| 	path = assets/syntaxes/02_Extra/Ninja | ||||
| 	url = https://github.com/pope/SublimeNinja.git | ||||
| [submodule "assets/syntaxes/02_Extra/Svelte"] | ||||
| 	path = assets/syntaxes/02_Extra/Svelte | ||||
| 	url = https://github.com/corneliusio/svelte-sublime | ||||
| [submodule "assets/themes/Coldark"] | ||||
| 	path = assets/themes/Coldark | ||||
| 	url = https://github.com/ArmandPhilippot/coldark-bat.git | ||||
| @@ -1,6 +1,5 @@ | ||||
| # unreleased | ||||
|  | ||||
| - Add Note to refer to see detailed help with --help (and vice versa with -h). see #1215 (@henil) | ||||
|  | ||||
| ## Features | ||||
|  | ||||
| @@ -8,14 +7,22 @@ | ||||
|  | ||||
| ## Bugfixes | ||||
|  | ||||
| - Throws an error when `bat` is being used as `pager`, see #1343 (@adrian-rivera) | ||||
|  | ||||
| ## Other | ||||
|  | ||||
| - Add note to refer to see detailed help with `--help` (and vice versa with `-h`), see #1215 (@henil) | ||||
| - Add a `Contributors` section to `README`, see #1348 (@adrian-rivera) | ||||
|  | ||||
| ## Syntaxes | ||||
|  | ||||
| - Manpage syntax highlighting has been improved, see #1315 (@keith-hall) | ||||
| - Add Svelte file syntax, see #1285 (@kjmph) | ||||
|  | ||||
| ## New themes | ||||
|  | ||||
| - Coldark, see #1329 (@armandphilippot) | ||||
|  | ||||
| ## `bat` as a library | ||||
|  | ||||
| ## Packaging | ||||
|   | ||||
							
								
								
									
										48
									
								
								CONTRIBUTING.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								CONTRIBUTING.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| # Contributing | ||||
|  | ||||
| Thank you for considering to contribute to `bat`! | ||||
|  | ||||
|  | ||||
|  | ||||
| ## Add an entry to the changelog | ||||
|  | ||||
| If your contribution changes the behavior of `bat` (as opposed to a typo-fix | ||||
| in the documentation), please update the [`CHANGELOG.md`](CHANGELOG.md) file | ||||
| and describe your changes. This makes the release proess much easier and | ||||
| therefore helps to get your changes into a new `bat` release faster. | ||||
|  | ||||
| The top of the `CHANGELOG` contains a *"unreleased"* section with a few | ||||
| subsections (Features, Bugfixes, …). Please add your entry to the subsection | ||||
| that best describes your change | ||||
|  | ||||
| Entries follow this format: | ||||
| ``` | ||||
| - Short description of what has been changed, see #123 (@user) | ||||
| ``` | ||||
| Here, `#123` is the number of the original issue and/or your pull request. | ||||
| Please replace `@user` by your GitHub username. | ||||
|  | ||||
|  | ||||
| ## Development | ||||
|  | ||||
| Please check out the [Development](https://github.com/sharkdp/bat#development) | ||||
| section in the README. | ||||
|  | ||||
|  | ||||
| ## Adding a new feature | ||||
|  | ||||
| Please consider opening a | ||||
| [feature request ticket](https://github.com/sharkdp/bat/issues/new?assignees=&labels=feature-request&template=feature_request.md) | ||||
| first in order to give us a chance to discuss the feature first. | ||||
|  | ||||
|  | ||||
| ## Adding new syntaxes/languages or themes | ||||
|  | ||||
| Before you make a pull request that adds a new syntax or theme, please read | ||||
| the [Customization](https://github.com/sharkdp/bat#customization) section | ||||
| in the README first. | ||||
|  | ||||
| If you really think that a particular syntax or theme should be added for all | ||||
| users, please read the corresponding | ||||
| [documentation](https://github.com/sharkdp/bat/blob/master/doc/assets.md) | ||||
| first. | ||||
							
								
								
									
										17
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								README.md
									
									
									
									
									
								
							| @@ -131,7 +131,18 @@ highlighting: | ||||
| git show v0.6.0:src/main.rs | bat -l rs | ||||
| ``` | ||||
|  | ||||
| Note that syntax highlighting within diffs is currently not supported. If you are looking for this, check out [`delta`](https://github.com/dandavison/delta). | ||||
| #### `git diff` | ||||
|  | ||||
| You can combine `bat` with `git diff` to view lines around code changes with proper syntax | ||||
| highlighting: | ||||
| ```bash | ||||
| batdiff() { | ||||
|     git diff --name-only --diff-filter=d | xargs bat --diff | ||||
| } | ||||
| ``` | ||||
| If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras). | ||||
|  | ||||
| If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta). | ||||
|  | ||||
| #### `xclip` | ||||
|  | ||||
| @@ -665,6 +676,10 @@ bash assets/create.sh | ||||
| cargo install --path . --locked --force | ||||
| ``` | ||||
|  | ||||
| ## Contributing | ||||
|  | ||||
| Take a look at the [`CONTRIBUTING.md`](CONTRIBUTING.md) guide. | ||||
|  | ||||
| ## Maintainers | ||||
|  | ||||
| - [sharkdp](https://github.com/sharkdp) | ||||
|   | ||||
							
								
								
									
										22
									
								
								assets/syntaxes/02_Extra/Manpage.sublime-syntax
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								assets/syntaxes/02_Extra/Manpage.sublime-syntax
									
									
									
									
										vendored
									
									
								
							| @@ -34,11 +34,11 @@ contexts: | ||||
|           scope: markup.heading.title.man | ||||
|         - match: \s\s | ||||
|           pop: true | ||||
|         - match: '(?=\S)' | ||||
|         - match: '(?=\S|$)' | ||||
|           pop: true | ||||
|  | ||||
|     - match: '$' | ||||
|       push: body | ||||
|       set: body | ||||
|  | ||||
|   body: | ||||
|     # English, ..., ..., ..., Russian, ... | ||||
| @@ -48,14 +48,16 @@ contexts: | ||||
|       embed: synopsis | ||||
|       escape: '(?={{section_heading}})' | ||||
|  | ||||
|     - match: '^(?:USAGE)' | ||||
|       scope: markup.heading.synopsis.man | ||||
|       embed: synopsis | ||||
|       escape: '(?={{section_heading}})' | ||||
|  | ||||
|     - match: '{{section_heading}}' | ||||
|       scope: markup.heading.other.man | ||||
|       embed: options # some man pages put command line options under the description heading | ||||
|       escape: '(?={{section_heading}})' | ||||
|  | ||||
|     - include: function-call | ||||
|  | ||||
|   function-call: | ||||
|     - match: '\b([A-Za-z0-9_\-]+)(\()([^)]*)(\))' | ||||
|       captures: | ||||
| @@ -83,6 +85,7 @@ contexts: | ||||
|         - match: '' | ||||
|           pop: true | ||||
|     - include: function-call | ||||
|     - include: c-code | ||||
|  | ||||
|   expect-command-line-option: | ||||
|     - match: '[A-Za-z0-9-]+' | ||||
| @@ -127,9 +130,15 @@ contexts: | ||||
|     - match: '$|(?=[],]|{{command_line_option}})' | ||||
|       pop: true | ||||
|  | ||||
|   c-code: | ||||
|     - match: '^(?=\s+(?:#include\b|#define\b|/\*|struct\s+(\w+\s*)?\{))' | ||||
|       embed: scope:source.c | ||||
|       #embed_scope: source.c.embedded.man | ||||
|       #escape: ^(?!#|\1|\s*(?:$|/\*|#include\b|#define\b)) | ||||
|       escape: ^(?=\s*(?:\(.*\.\)\s*$|[A-Z](?![A-Z]))) | ||||
|  | ||||
|   synopsis: | ||||
|     - match: '^(?=\s+(?:#include|/\*))' | ||||
|       push: scope:source.c | ||||
|     - include: c-code | ||||
|     - match: \[ | ||||
|       scope: punctuation.section.brackets.begin.man | ||||
|       push: command-line-option-or-pipe | ||||
| @@ -140,6 +149,7 @@ contexts: | ||||
|       captures: | ||||
|         1: keyword.operator.logical.man | ||||
|     #- match: (?={{command_line_option}}) | ||||
|     - match: \w+-\w+ | ||||
|     - match: (?=-) | ||||
|       push: | ||||
|         - match: (?=\s*\|) | ||||
|   | ||||
							
								
								
									
										1
									
								
								assets/syntaxes/02_Extra/Svelte
									
									
									
									
										vendored
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								assets/syntaxes/02_Extra/Svelte
									
									
									
									
										vendored
									
									
										Submodule
									
								
							 Submodule assets/syntaxes/02_Extra/Svelte added at bf92f5b7b6
									
								
							
							
								
								
									
										32
									
								
								assets/syntaxes/02_Extra/syntax_test_man.man
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								assets/syntaxes/02_Extra/syntax_test_man.man
									
									
									
									
										vendored
									
									
								
							| @@ -5,7 +5,7 @@ SOMETHING(8)                System Manager's Manual               SOMETHING(8) | ||||
| #                                                                   ^^^^^^^ meta.preprocessor | ||||
|  | ||||
| NAME | ||||
| #^^^ markup.heading.title | ||||
| #^^^ markup.heading.other | ||||
|        example - do something useful | ||||
|  | ||||
| SYNOPSIS | ||||
| @@ -45,9 +45,16 @@ SYNOPSIS | ||||
|        [--quiet] [--debug] [--help|-h]  [--version]  [--conf FILE] | ||||
|  | ||||
|         /* According to POSIX.1-2001, POSIX.1-2008 */ | ||||
| #       ^^ source comment.block punctuation.definition.comment | ||||
| #       ^^ source.c comment.block punctuation.definition.comment | ||||
|        #include <sys/select.h> | ||||
| #      ^^^^^^^^ source meta.preprocessor.include keyword.control.import.include | ||||
| #      ^^^^^^^^ source.c meta.preprocessor.include keyword.control.import.include | ||||
|            struct timeval { | ||||
| #          ^^^^^^ source.c storage.type | ||||
|              | ||||
|                time_t         tv_sec;     /* seconds */ | ||||
|                suseconds_t    tv_usec;    /* microseconds */ | ||||
|            }; | ||||
|  | ||||
|  | ||||
|  | ||||
| DESCRIPTION | ||||
| @@ -123,3 +130,22 @@ OPTIONS | ||||
| #                             ^^^ variable.parameter | ||||
| #                                ^^ - variable | ||||
|               output NUM (default 3) lines of copied context | ||||
|  | ||||
| EXAMPLE | ||||
|        #include <stdio.h> | ||||
| #      ^^^^^^^^ source.c meta.preprocessor.include keyword.control.import.include | ||||
|  | ||||
|     (This is not C code.) | ||||
| #   ^^^^^^^^^^^^^^^^^^^^^^ - source.c | ||||
|  | ||||
|            struct timeval { | ||||
|                time_t      tv_sec;         /* seconds */ | ||||
|                suseconds_t tv_usec;        /* microseconds */ | ||||
|            }; | ||||
| #           ^ source.c punctuation.terminator | ||||
|  | ||||
|        The corresponding argument for pselect() has the following type: | ||||
| #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - source.c | ||||
|            #define POLLIN_SET  (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN | | ||||
|                                 EPOLLHUP | EPOLLERR) | ||||
| #                                                  ^ source.c meta.preprocessor.macro meta.group punctuation.section.group.end | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								assets/themes.bin
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/themes.bin
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										1
									
								
								assets/themes/Coldark
									
									
									
									
										vendored
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								assets/themes/Coldark
									
									
									
									
										vendored
									
									
										Submodule
									
								
							 Submodule assets/themes/Coldark added at b4a1c74d8d
									
								
							| @@ -205,6 +205,14 @@ pub fn list_themes(cfg: &Config) -> Result<()> { | ||||
|             writeln!(stdout, "{}", theme)?; | ||||
|         } | ||||
|     } | ||||
|     writeln!( | ||||
|         stdout, | ||||
|         "Further themes can be installed to '{}', \ | ||||
|         and are added to the cache with `bat cache --build`. \ | ||||
|         For more information, see:\n\n  \ | ||||
|         https://github.com/sharkdp/bat#adding-new-themes", | ||||
|         config_file().join("themes").to_string_lossy() | ||||
|     )?; | ||||
|  | ||||
|     Ok(()) | ||||
| } | ||||
|   | ||||
| @@ -20,6 +20,10 @@ error_chain! { | ||||
|             description("unknown syntax"), | ||||
|             display("unknown syntax: '{}'", name) | ||||
|         } | ||||
|         InvalidPagerValueBat { | ||||
|             description("invalid value `bat` for pager property"), | ||||
|             display("Use of bat as a pager is disallowed in order to avoid infinite recursion problems") | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -85,10 +85,10 @@ impl OutputType { | ||||
|  | ||||
|         match pagerflags.split_first() { | ||||
|             Some((pager_name, args)) => { | ||||
|                 let mut pager_path = PathBuf::from(pager_name); | ||||
|                 let pager_path = PathBuf::from(pager_name); | ||||
|  | ||||
|                 if pager_path.file_stem() == Some(&OsString::from("bat")) { | ||||
|                     pager_path = PathBuf::from("less"); | ||||
|                     return Err(ErrorKind::InvalidPagerValueBat.into()); | ||||
|                 } | ||||
|  | ||||
|                 let is_less = pager_path.file_stem() == Some(&OsString::from("less")); | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| use bat::assets::HighlightingAssets; | ||||
|  | ||||
| /// This test ensures that we are not accidentally removing themes due to submodule updates. | ||||
| /// It is 'ignore'd by default because it requires themes.bin to be up-to-date. | ||||
| #[test] | ||||
| #[ignore] | ||||
| fn all_themes_are_present() { | ||||
|     let assets = HighlightingAssets::from_binary(); | ||||
|  | ||||
| @@ -12,6 +14,8 @@ fn all_themes_are_present() { | ||||
|         themes, | ||||
|         vec![ | ||||
|             "1337", | ||||
|             "Coldark-Cold", | ||||
|             "Coldark-Dark", | ||||
|             "DarkNeon", | ||||
|             "Dracula", | ||||
|             "GitHub", | ||||
|   | ||||
| @@ -405,6 +405,16 @@ fn pager_disable() { | ||||
|         .stdout(predicate::eq("hello world\n").normalize()); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn pager_value_bat() { | ||||
|     bat() | ||||
|         .arg("--pager=bat") | ||||
|         .arg("--paging=always") | ||||
|         .arg("test.txt") | ||||
|         .assert() | ||||
|         .failure(); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn alias_pager_disable() { | ||||
|     bat() | ||||
|   | ||||
							
								
								
									
										44
									
								
								tests/syntax-tests/highlighted/D/test.d
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								tests/syntax-tests/highlighted/D/test.d
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| [38;2;117;113;94m//[0m[38;2;117;113;94m selective import[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255mstdio[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mwriteln[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255mwritefln[0m[38;2;248;248;242m;[0m | ||||
| [38;2;117;113;94m//[0m[38;2;117;113;94m non-selective import[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mstd[0m[38;2;248;248;242m.[0m[38;2;255;255;255malgorithm[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;117;113;94m/*[0m[38;2;117;113;94m a multiline comment[0m | ||||
| [38;2;117;113;94m*[0m | ||||
| [38;2;117;113;94m*[0m[38;2;117;113;94m this function is safe because it doesn't use pointer arithmetic[0m | ||||
| [38;2;117;113;94m*/[0m | ||||
| [3;38;2;102;217;239mint[0m[38;2;248;248;242m [0m[38;2;166;226;46mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;249;38;114msafe[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m//[0m[38;2;117;113;94m assert1on[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114massert[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m [0m[38;2;249;38;114m!=[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m        [0m[38;2;117;113;94m//[0m[38;2;117;113;94m now we can safely return our answer	[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;190;132;255m42[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mvoid[0m[38;2;248;248;242m [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m function call with string literal[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello World![0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an int array declaration[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m an immutable double[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mimmutable[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255mpi[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m3[0m[38;2;190;132;255m.[0m[38;2;190;132;255m14[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a mutable double[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mdouble[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mpi[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a pointer[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mdouble[0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;255;255;255mdp1[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;255;255;255md1[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another pointer to the same thingy[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mauto[0m[38;2;248;248;242m [0m[38;2;255;255;255ma1[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;255;255;255md1[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m a constant bool[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mbool[0m[38;2;248;248;242m [0m[38;2;255;255;255mb1[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;255;255;255mb1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m	    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m another function call [0m | ||||
| [38;2;248;248;242m	    [0m[38;2;248;248;242mwritefln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255marr1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255md1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242mthe_ultimate_answer[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;249;38;114m![0m[38;2;255;255;255mb1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m	    [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mthis seems wrong[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m	    [0m[38;2;248;248;242mwriteln[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mI'm giving up, this is too crazy for me[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m}[0m | ||||
							
								
								
									
										67
									
								
								tests/syntax-tests/highlighted/EtcGroup/test.group
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								tests/syntax-tests/highlighted/EtcGroup/test.group
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| [38;2;249;38;114mroot[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m0[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mroot[0m | ||||
| [38;2;249;38;114msys[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m3[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mbin[0m | ||||
| [38;2;249;38;114mmem[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m8[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mftp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m11[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mmail[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m12[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mlog[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m19[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msmmsp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m25[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mproc[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m26[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mpolkitd[0m | ||||
| [38;2;249;38;114mgames[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m50[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mlock[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m54[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mnetwork[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m90[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mfloppy[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m94[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mscanner[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m96[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mpower[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m98[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114madm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m999[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mdaemon[0m | ||||
| [38;2;249;38;114mwheel[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m998[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114mkmem[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m997[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mtty[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m5[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mutmp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m996[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114maudio[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m995[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mmpd,username[0m | ||||
| [38;2;249;38;114mdisk[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m994[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114minput[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m993[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mkvm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m992[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mlp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m991[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114moptical[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m990[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114mrender[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m989[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mstorage[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m988[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114muucp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m987[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mvideo[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m986[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114musers[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m985[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msystemd-journal[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m984[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mrfkill[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m983[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mbin[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mdaemon[0m | ||||
| [38;2;249;38;114mdaemon[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m2[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31mbin[0m | ||||
| [38;2;249;38;114mhttp[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m33[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mnobody[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m65534[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mdbus[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m81[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msystemd-journal-remote[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m982[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msystemd-network[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m981[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msystemd-resolve[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m980[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msystemd-timesync[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m979[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114msystemd-coredump[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m978[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114muuidd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m68[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114musername[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1000[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mgit[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m977[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mavahi[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m976[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mcolord[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m975[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mpolkitd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m102[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mmpd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m45[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mrtkit[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m133[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mtransmission[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m169[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mwireshark[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m150[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114mlightdm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m974[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mgeoclue[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m973[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114musbmux[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m140[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mdhcpcd[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m972[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mbrlapi[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m971[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mgdm[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m120[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mlibvirt[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m970[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mflatpak[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m969[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mgluster[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m968[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mrpc[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m32[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mtor[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m43[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mrslsync[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m967[0m[38;2;248;248;242m:[0m | ||||
| [38;2;249;38;114mdocker[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m966[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114msambashare[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m1002[0m[38;2;248;248;242m:[0m[3;38;2;253;151;31musername[0m | ||||
| [38;2;249;38;114mnamed[0m[38;2;248;248;242m:[0m[38;2;248;248;240mx[0m[38;2;248;248;242m:[0m[38;2;190;132;255m40[0m[38;2;248;248;242m:[0m | ||||
| @@ -0,0 +1,16 @@ | ||||
| [38;2;117;113;94m#[0m | ||||
| [38;2;117;113;94m#[0m[38;2;117;113;94m Comment[0m | ||||
|  | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mattr[0m[38;2;248;248;242m][0m[38;2;255;255;255mbinary[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mdiff[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mmerge[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mtext[0m | ||||
|  | ||||
| [38;2;249;38;114m*[0m[38;2;248;248;242m          [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m=[0m[38;2;230;219;116mauto[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mc[0m[38;2;248;248;242m        [0m[38;2;255;255;255mdiff[0m[38;2;248;248;242m=[0m[38;2;230;219;116mc[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mcc[0m[38;2;248;248;242m       [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;255;255;255mdiff[0m[38;2;248;248;242m=[0m[38;2;230;219;116mcpp[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mo[0m[38;2;248;248;242m        [0m[38;2;255;255;255mbinary[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mbat[0m[38;2;248;248;242m      [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;255;255;255meol[0m[38;2;248;248;242m=[0m[38;2;230;219;116mcrlf[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mlock[0m[38;2;248;248;242m     [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;255;255;255mdiff[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;249;38;114m*[0m[38;2;166;226;46mignore[0m[38;2;248;248;242m  [0m[38;2;255;255;255mtext[0m | ||||
| [38;2;249;38;114m*[0m[38;2;166;226;46m.[0m[38;2;166;226;46mpatch[0m[38;2;248;248;242m    [0m[38;2;249;38;114m-[0m[38;2;255;255;255mtext[0m | ||||
|  | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mgitattributes[0m[38;2;248;248;242m [0m[38;2;255;255;255mlinguist-language[0m[38;2;248;248;242m=[0m[38;2;230;219;116mgitattributes[0m | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mgitkeep[0m[38;2;248;248;242m       [0m[38;2;255;255;255mexport-ignore[0m | ||||
							
								
								
									
										107
									
								
								tests/syntax-tests/highlighted/Git Config/text.gitconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								tests/syntax-tests/highlighted/Git Config/text.gitconfig
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46malias[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mbr[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mbranch[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mbranch[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mbranch -a[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mc[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mclone --recursive[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mci[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mcommit[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mcl[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mclone[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mco[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mcheckout[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mcontributors[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mshortlog --summary --numbered[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mlg[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mlog --graph --abbrev-commit --decorate --format=[0m[38;2;249;38;114mformat[0m[38;2;249;38;114m:[0m[38;2;255;255;255m'[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mbold[0m[38;2;230;219;116m [0m[38;2;102;217;239mblue[0m[38;2;230;219;116m)[0m[38;2;190;132;255m%h[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mreset[0m[38;2;230;219;116m)[0m[38;2;230;219;116m - [0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mbold[0m[38;2;230;219;116m [0m[38;2;102;217;239mgreen[0m[38;2;230;219;116m)[0m[38;2;230;219;116m([0m[38;2;190;132;255m%ar[0m[38;2;230;219;116m)[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mreset[0m[38;2;230;219;116m)[0m[38;2;230;219;116m [0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mwhite[0m[38;2;230;219;116m)[0m[38;2;190;132;255m%s[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mreset[0m[38;2;230;219;116m)[0m[38;2;230;219;116m [0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mdim[0m[38;2;230;219;116m [0m[38;2;102;217;239mwhite[0m[38;2;230;219;116m)[0m[38;2;230;219;116m- [0m[38;2;190;132;255m%an[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mreset[0m[38;2;230;219;116m)[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mbold[0m[38;2;230;219;116m [0m[38;2;102;217;239myellow[0m[38;2;230;219;116m)[0m[38;2;190;132;255m%d[0m[38;2;255;255;255m%C[0m[38;2;230;219;116m([0m[38;2;102;217;239mreset[0m[38;2;230;219;116m)[0m[38;2;255;255;255m'[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mremote[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mremote -v[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mst[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mstatus[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mtag[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mtag -l[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mapply[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mwhitespace[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mfix[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcolor[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mui[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcolor[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mbranch[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mcurrent[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239myellow[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mlocal[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239myellow[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mremote[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mgreen[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcolor[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mdiff[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mcommit[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239myellow[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mfrag[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mmagenta[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mmeta[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239myellow[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mnew[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mgreen[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mold[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mred[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mwhitespace[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mred[0m[38;2;248;248;242m [0m[38;2;102;217;239mreverse[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcolor[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mdiff-highlight[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mnewHighlight[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mgreen[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m[38;2;248;248;242m [0m[38;2;190;132;255m22[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mnewNormal[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mgreen[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255moldHighlight[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mred[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m[38;2;248;248;242m [0m[38;2;190;132;255m52[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255moldNormal[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mred[0m[38;2;248;248;242m [0m[38;2;102;217;239mbold[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcolor[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mstatus[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255madded[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mgreen[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mchanged[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239myellow[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255muntracked[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mcyan[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcommit[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mgpgsign[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcore[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255meditor[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m/usr/bin/vim[0m | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m#[0m[38;2;117;113;94m global exclude[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mexcludesfile[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m/home/frank/.config/git/ignore[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mpager[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mdelta[0m | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m;[0m[38;2;117;113;94m broken on old machines[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255muntrackedCache[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mcredential[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mhelper[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mstore[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mdelta[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mfeatures[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mline-numbers decorations[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mmax-line-length[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m1024[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mwhitespace-error-style[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m22 reverse[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mdelta[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mdecorations[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mcommit-decoration-style[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mbold yellow box ul[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mfile-decoration-style[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mnone[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mfile-style[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mbold yellow[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255msyntax-theme[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mgruvbox[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mdiff[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255msubmodule[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mdiff[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255malgorithm[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mhistogram[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mrenames[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mcopies[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mdifftool[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mprompt[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mdifftool[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mwrapper[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mbinary[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mcmd[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mgit-difftool-wrapper [0m[38;2;190;132;255m\"[0m[38;2;230;219;116m$LOCAL[0m[38;2;190;132;255m\"[0m[38;2;230;219;116m [0m[38;2;190;132;255m\"[0m[38;2;230;219;116m$REMOTE[0m[38;2;190;132;255m\"[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mdiff[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mpdfconv[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mtextconv[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mpdftohtml -stdout[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mfetch[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mnegotiationAlgorithm[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mskipping[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mparallel[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m0[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mhelp[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mautocorrect[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m1[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mindex[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mversion[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m4[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46minteractive[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mdiffFilter[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mdelta --color-only[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mmerge[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mlog[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mprotocol[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mversion[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m2[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mpull[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mrebase[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mpush[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mdefault[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mcurrent[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mrecurseSubmodules[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mon[0m[38;2;230;219;116m-demand[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mrebase[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mautoStash[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mrerere[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mautoUpdate[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255menabled[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46msequence[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255meditor[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116minteractive-rebase-tool[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46msubmodule[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mfetchJobs[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m0[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46mtag[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mgpgSign[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255msort[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m-version:refname[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46murl[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mgit@gist.github.com:[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255minsteadOf[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mgist:[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mpushInsteadOf[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mhttps://gist.github.com/[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46murl[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mgit@github.com:[0m[38;2;230;219;116m"[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255minsteadOf[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mgh:[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mpushInsteadOf[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mhttps://github.com/[0m | ||||
| [38;2;248;248;242m[[0m[38;2;166;226;46muser[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255memail[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mf.nord@example.com[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255mname[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mFrank Nord[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255msigningkey[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mAAAAAAAAAAAAAAAA[0m | ||||
							
								
								
									
										41
									
								
								tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| [3;38;2;102;217;239mdigraph[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m	[0m[38;2;102;217;239mlabel[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m<[0m[38;2;248;248;242mLabel [0m[38;2;255;255;255m<[0m[38;2;249;38;114mfont[0m[38;2;166;226;46m [0m[38;2;166;226;46mcolor[0m[38;2;166;226;46m=[0m[38;2;255;255;255m'[0m[38;2;230;219;116mred[0m[38;2;255;255;255m'[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<[0m[38;2;249;38;114mb[0m[38;2;255;255;255m>[0m[38;2;248;248;242mformating[0m[38;2;255;255;255m</[0m[38;2;249;38;114mb[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mfont[0m[38;2;255;255;255m>[0m[38;2;248;248;242m,[0m[38;2;255;255;255m<[0m[38;2;249;38;114mbr[0m[38;2;255;255;255m/>[0m[38;2;248;248;242m test [0m[38;2;255;255;255m<[0m[38;2;249;38;114mfont[0m[38;2;166;226;46m [0m[38;2;166;226;46mpoint-size[0m[38;2;166;226;46m=[0m[38;2;255;255;255m'[0m[38;2;230;219;116m20[0m[38;2;255;255;255m'[0m[38;2;255;255;255m>[0m[38;2;248;248;242mis[0m[38;2;255;255;255m</[0m[38;2;249;38;114mfont[0m[38;2;255;255;255m>[0m[38;2;248;248;242m done[0m[38;2;255;255;255m<[0m[38;2;249;38;114mbr[0m[38;2;255;255;255m/>[0m[38;2;248;248;242m here [0m[38;2;255;255;255m<[0m[38;2;249;38;114mi[0m[38;2;255;255;255m>[0m[38;2;248;248;242mnow.[0m[38;2;255;255;255m</[0m[38;2;249;38;114mi[0m[38;2;255;255;255m>[0m[38;2;248;248;242m>[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[3;38;2;102;217;239mnode[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;102;217;239mshape[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbox[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;102;217;239mrankdir[0m[38;2;249;38;114m=[0m[38;2;248;248;242mLR[0m | ||||
| [38;2;248;248;242m	[0m[38;2;102;217;239mmargin[0m[38;2;249;38;114m=[0m[38;2;248;248;242m0.1[0m | ||||
| [38;2;248;248;242m	a[0m[38;2;248;248;242m->[0m[38;2;248;248;242mb[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m//[0m[38;2;117;113;94m http://www.graphviz.org/doc/info/colors.html[0m | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m//[0m[38;2;117;113;94m note: style=filled![0m | ||||
| [38;2;248;248;242m	[0m[3;38;2;102;217;239mnode[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;102;217;239mshape[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbox colorscheme[0m[38;2;249;38;114m=[0m[38;2;248;248;242mpaired12 [0m[38;2;102;217;239mstyle[0m[38;2;249;38;114m=[0m[38;2;248;248;242mfilled[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;102;217;239mmargin[0m[38;2;249;38;114m=[0m[38;2;248;248;242m0.1[0m | ||||
| [38;2;248;248;242m	a2[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m1[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	b2[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m3[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	a2[0m[38;2;248;248;242m->[0m[38;2;248;248;242mb2[0m[38;2;248;248;242m->[0m[38;2;248;248;242mx2[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m//[0m[38;2;117;113;94m http://www.graphviz.org/doc/info/colors.html[0m | ||||
| [38;2;248;248;242m	[0m[38;2;117;113;94m//[0m[38;2;117;113;94m note: style=filled![0m | ||||
| [38;2;248;248;242m	[0m[3;38;2;102;217;239mnode[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;102;217;239mshape[0m[38;2;249;38;114m=[0m[38;2;248;248;242mbox colorscheme[0m[38;2;249;38;114m=[0m[38;2;248;248;242mpaired12 [0m[38;2;102;217;239mstyle[0m[38;2;249;38;114m=[0m[38;2;248;248;242mfilled[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	[0m[38;2;102;217;239mrankdir[0m[38;2;249;38;114m=[0m[38;2;248;248;242mLR[0m | ||||
| [38;2;248;248;242m	[0m[38;2;102;217;239mmargin[0m[38;2;249;38;114m=[0m[38;2;248;248;242m0.1[0m | ||||
| [38;2;248;248;242m	c1[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m1[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c2[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m2[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c3[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m3[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c4[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m4[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c5[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m5[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c6[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m6[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c7[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m7[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c8[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m8[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c9[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m9[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c10[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m10[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c11[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m11[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c12[0m[38;2;248;248;242m[[0m[38;2;102;217;239mfillcolor[0m[38;2;249;38;114m=[0m[38;2;248;248;242m12[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m	c[0m[38;2;248;248;242m->[0m[38;2;255;255;255m{[0m[38;2;248;248;242mc1 c3 c5 c7 c9 c11[0m[38;2;255;255;255m}[0m | ||||
| [38;2;248;248;242m	c1[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc2[0m | ||||
| [38;2;248;248;242m	c3[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc4[0m | ||||
| [38;2;248;248;242m	c5[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc6[0m | ||||
| [38;2;248;248;242m	c7[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc8[0m | ||||
| [38;2;248;248;242m	c9[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc10[0m | ||||
| [38;2;248;248;242m	c11[0m[38;2;248;248;242m->[0m[38;2;248;248;242mc12[0m | ||||
| [38;2;255;255;255m}[0m | ||||
| @@ -0,0 +1,3 @@ | ||||
| [3;38;2;102;217;239mgraph[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m	a[0m[38;2;248;248;242m--[0m[38;2;248;248;242mb[0m | ||||
| [38;2;255;255;255m}[0m | ||||
							
								
								
									
										34
									
								
								tests/syntax-tests/highlighted/MATLAB/test.matlab
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								tests/syntax-tests/highlighted/MATLAB/test.matlab
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| [38;2;249;38;114mfunction[0m[38;2;248;248;242m zz[0m[38;2;249;38;114m=[0m[38;2;166;226;46msample[0m[38;2;248;248;242m([0m[3;38;2;253;151;31maa[0m[38;2;248;248;242m)[0m | ||||
| [38;2;117;113;94m%%[0m[38;2;117;113;94m%%%%%%%%%%%%%%%%[0m | ||||
| [38;2;117;113;94m%[0m[38;2;117;113;94m some comments[0m | ||||
| [38;2;117;113;94m%%[0m[38;2;117;113;94m%%%%%%%%%%%%%%%%[0m | ||||
|  | ||||
| [38;2;248;248;242mx[0m[38;2;249;38;114m = [0m[38;2;230;219;116m'[0m[38;2;230;219;116ma string[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;    [0m[38;2;117;113;94m%[0m[38;2;117;113;94m some 'ticks' in a comment[0m | ||||
| [38;2;248;248;242my[0m[38;2;249;38;114m = [0m[38;2;230;219;116m'[0m[38;2;230;219;116ma string with [0m[38;2;190;132;255m''[0m[38;2;230;219;116minteral[0m[38;2;190;132;255m''[0m[38;2;230;219;116m quotes[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;190;132;255mi[0m[38;2;249;38;114m=[0m[38;2;190;132;255m1[0m[38;2;249;38;114m:[0m[38;2;190;132;255m20[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mdisp[0m[38;2;248;248;242m([0m[38;2;190;132;255mi[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;249;38;114mend[0m | ||||
|  | ||||
| [38;2;248;248;242ma[0m[38;2;249;38;114m = [0m[38;2;249;38;114mrand[0m[38;2;248;248;242m([0m[38;2;190;132;255m30[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242mb[0m[38;2;249;38;114m = [0m[38;2;249;38;114mrand[0m[38;2;248;248;242m([0m[38;2;190;132;255m30[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242mc[0m[38;2;249;38;114m = [0m[38;2;248;248;242ma[0m[38;2;249;38;114m .* [0m[38;2;248;248;242mb[0m[38;2;249;38;114m ./ [0m[38;2;248;248;242ma[0m[38;2;249;38;114m \ [0m[38;2;248;248;242m... [0m[38;2;248;248;242mcomment[0m[38;2;248;248;242m [0m[38;2;248;248;242mat[0m[38;2;248;248;242m [0m[38;2;249;38;114mend[0m[38;2;248;248;242m [0m[38;2;248;248;242mof[0m[38;2;248;248;242m [0m[38;2;102;217;239mline[0m[38;2;248;248;242m [0m[38;2;249;38;114mand[0m[38;2;248;248;242m [0m[38;2;248;248;242mcontinuation[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m([0m[38;2;248;248;242mb[0m[38;2;249;38;114m .* [0m[38;2;248;248;242ma[0m[38;2;249;38;114m + [0m[38;2;248;248;242mb[0m[38;2;249;38;114m - [0m[38;2;248;248;242ma[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242mc[0m[38;2;249;38;114m = [0m[38;2;248;248;242ma[0m[38;2;249;38;114m'[0m[38;2;249;38;114m * [0m[38;2;248;248;242mb[0m[38;2;249;38;114m'[0m[38;2;248;248;242m;  [0m[38;2;117;113;94m%[0m[38;2;117;113;94m note: these ticks are for transpose, not quotes.[0m | ||||
|  | ||||
| [38;2;249;38;114mdisp[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;230;219;116ma comment symbol, %, in a string[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;249;38;114m!echo abc % this isn't a comment - it's passed to system command[0m | ||||
|  | ||||
| [38;2;249;38;114mfunction[0m[38;2;248;248;242m y[0m[38;2;249;38;114m=[0m[38;2;166;226;46mmyfunc[0m[38;2;248;248;242m([0m[3;38;2;253;151;31mx[0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242my[0m[38;2;249;38;114m = [0m[38;2;249;38;114mexp[0m[38;2;248;248;242m([0m[38;2;248;248;242mx[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;117;113;94m%{[0m | ||||
| [38;2;117;113;94m  a block comment[0m | ||||
| [38;2;117;113;94m%}[0m | ||||
|  | ||||
| [38;2;249;38;114mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46mno_arg_func[0m | ||||
| [38;2;249;38;114mfprintf[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;190;132;255m%s[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m'[0m[38;2;230;219;116mfunction with no args[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m | ||||
| [38;2;249;38;114mend[0m | ||||
| @@ -1,12 +1,12 @@ | ||||
| [38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m                      [0m[38;2;253;151;31mGeneral[0m[38;2;253;151;31m [0m[38;2;253;151;31mCommands[0m[38;2;253;151;31m [0m[38;2;253;151;31mManual[0m[38;2;248;248;242m                     [0m[38;2;190;132;255mBAT[0m[38;2;249;38;114m([0m[38;2;230;219;116m1[0m[38;2;249;38;114m)[0m | ||||
|  | ||||
| [38;2;253;151;31mNAME[0m | ||||
| [38;2;248;248;242m       bat - a cat(1) clone with syntax highlighting and Git integration.[0m | ||||
| [38;2;248;248;242m       bat - a [0m[38;2;166;226;46mcat[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m clone with syntax highlighting and Git integration.[0m | ||||
|  | ||||
| [38;2;253;151;31mUSAGE[0m | ||||
| [38;2;248;248;242m       bat [OPTIONS] [FILE]...[0m | ||||
| [38;2;248;248;242m       bat [0m[38;2;248;248;242m[[0m[38;2;248;248;242mOPTIONS[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242mFILE[0m[38;2;248;248;242m][0m[38;2;248;248;242m...[0m | ||||
|  | ||||
| [38;2;248;248;242m       bat cache [CACHE-OPTIONS] [[0m[38;2;166;226;46m--build[0m[38;2;248;248;242m|[0m[38;2;166;226;46m--clear[0m[38;2;248;248;242m][0m | ||||
| [38;2;248;248;242m       bat cache [0m[38;2;248;248;242m[[0m[38;2;248;248;242mCACHE-OPTIONS[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;166;226;46m--build[0m[38;2;249;38;114m|[0m[38;2;166;226;46m--clear[0m[38;2;248;248;242m][0m | ||||
|  | ||||
| [38;2;253;151;31mDESCRIPTION[0m | ||||
| [38;2;248;248;242m       bat  prints  the syntax-highlighted content of a collection of FILEs to[0m | ||||
|   | ||||
| @@ -18,9 +18,9 @@ | ||||
| [38;2;248;248;242m                   fd_set [0m[38;2;249;38;114m*[0m[3;38;2;253;151;31mexceptfds[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m timespec [0m[38;2;249;38;114m*[0m[3;38;2;253;151;31mtimeout[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m                   [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m sigset_t [0m[38;2;249;38;114m*[0m[3;38;2;253;151;31msigmask[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m   Feature Test Macro Requirements for [0m[38;2;166;226;46mglibc[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242msee [0m[38;2;248;248;242mfeature_test_macros[0m[38;2;248;248;242m([0m[38;2;190;132;255m7[0m[38;2;248;248;242m)[0m[38;2;248;248;242m)[0m[38;2;249;38;114m:[0m | ||||
| [38;2;248;248;242m   Feature Test Macro Requirements for glibc (see [0m[38;2;166;226;46mfeature_test_macros[0m[38;2;249;38;114m([0m[38;2;190;132;255m7[0m[38;2;249;38;114m)[0m[38;2;248;248;242m):[0m | ||||
|  | ||||
| [38;2;248;248;242m       [0m[38;2;248;248;242mpselect[0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;249;38;114m:[0m[38;2;248;248;242m _POSIX_C_SOURCE [0m[38;2;249;38;114m>=[0m[38;2;248;248;242m [0m[38;2;190;132;255m200112[0m[3;38;2;102;217;239mL[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46mpselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m: _POSIX_C_SOURCE >= 200112L[0m | ||||
|  | ||||
| [38;2;253;151;31mDESCRIPTION[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46mselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m  allows  a  program  to  monitor  multiple file descriptors, waiting until one or more of the file descriptors become[0m | ||||
| @@ -142,17 +142,17 @@ | ||||
| [38;2;248;248;242m   The timeout[0m | ||||
| [38;2;248;248;242m       The timeout argument for [0m[38;2;166;226;46mselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m is a structure of the following type:[0m | ||||
|  | ||||
| [38;2;248;248;242m           struct timeval {[0m | ||||
| [38;2;248;248;242m               time_t      tv_sec;         /* seconds */[0m | ||||
| [38;2;248;248;242m               suseconds_t tv_usec;        /* microseconds */[0m | ||||
| [38;2;248;248;242m           };[0m | ||||
| [38;2;248;248;242m           [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m [0m[38;2;166;226;46mtimeval[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m               [0m[3;38;2;166;226;46mtime_t[0m[38;2;248;248;242m      tv_sec[0m[38;2;248;248;242m;[0m[38;2;248;248;242m         [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m seconds [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m               [0m[3;38;2;166;226;46msuseconds_t[0m[38;2;248;248;242m tv_usec[0m[38;2;248;248;242m;[0m[38;2;248;248;242m        [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m microseconds [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m           [0m[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m       The corresponding argument for [0m[38;2;166;226;46mpselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m has the following type:[0m | ||||
|  | ||||
| [38;2;248;248;242m           struct timespec {[0m | ||||
| [38;2;248;248;242m               time_t      tv_sec;         /* seconds */[0m | ||||
| [38;2;248;248;242m               long        tv_nsec;        /* nanoseconds */[0m | ||||
| [38;2;248;248;242m           };[0m | ||||
| [38;2;248;248;242m           [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m [0m[38;2;166;226;46mtimespec[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m               [0m[3;38;2;166;226;46mtime_t[0m[38;2;248;248;242m      tv_sec[0m[38;2;248;248;242m;[0m[38;2;248;248;242m         [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m seconds [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m               [0m[3;38;2;102;217;239mlong[0m[38;2;248;248;242m        tv_nsec[0m[38;2;248;248;242m;[0m[38;2;248;248;242m        [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m nanoseconds [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m           [0m[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m       On  Linux,  [0m[38;2;166;226;46mselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m  modifies  timeout  to  reflect  the amount of time not slept; most other implementations do not do this.[0m | ||||
| [38;2;248;248;242m       (POSIX.1 permits either behavior.)  This causes problems both when Linux code which reads timeout is ported to other operating[0m | ||||
| @@ -213,14 +213,14 @@ | ||||
| [38;2;248;248;242m       Within  the  Linux  kernel  source,  we  find  the  following  definitions which show the correspondence between the readable,[0m | ||||
| [38;2;248;248;242m       writable, and exceptional condition notifications of [0m[38;2;166;226;46mselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m and the event notifications provided by [0m[38;2;166;226;46mpoll[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m and [0m[38;2;166;226;46mepoll[0m[38;2;249;38;114m([0m[38;2;190;132;255m7[0m[38;2;249;38;114m)[0m[38;2;248;248;242m:[0m | ||||
|  | ||||
| [38;2;248;248;242m           #define POLLIN_SET  (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |[0m | ||||
| [38;2;248;248;242m                                EPOLLHUP | EPOLLERR)[0m | ||||
| [38;2;248;248;242m                              /* Ready for reading */[0m | ||||
| [38;2;248;248;242m           #define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |[0m | ||||
| [38;2;248;248;242m                                EPOLLERR)[0m | ||||
| [38;2;248;248;242m                              /* Ready for writing */[0m | ||||
| [38;2;248;248;242m           #define POLLEX_SET  (EPOLLPRI)[0m | ||||
| [38;2;248;248;242m                              /* Exceptional condition */[0m | ||||
| [38;2;248;248;242m           [0m[38;2;249;38;114m#define[0m[38;2;190;132;255m [0m[38;2;166;226;46mPOLLIN_SET[0m[38;2;190;132;255m  [0m[38;2;190;132;255m([0m[38;2;190;132;255mEPOLLRDNORM [0m[38;2;249;38;114m|[0m[38;2;190;132;255m EPOLLRDBAND [0m[38;2;249;38;114m|[0m[38;2;190;132;255m EPOLLIN [0m[38;2;249;38;114m|[0m | ||||
| [38;2;190;132;255m                                EPOLLHUP [0m[38;2;249;38;114m|[0m[38;2;190;132;255m EPOLLERR[0m[38;2;190;132;255m)[0m | ||||
| [38;2;248;248;242m                              [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Ready for reading [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m           [0m[38;2;249;38;114m#define[0m[38;2;190;132;255m [0m[38;2;166;226;46mPOLLOUT_SET[0m[38;2;190;132;255m [0m[38;2;190;132;255m([0m[38;2;190;132;255mEPOLLWRBAND [0m[38;2;249;38;114m|[0m[38;2;190;132;255m EPOLLWRNORM [0m[38;2;249;38;114m|[0m[38;2;190;132;255m EPOLLOUT [0m[38;2;249;38;114m|[0m | ||||
| [38;2;190;132;255m                                EPOLLERR[0m[38;2;190;132;255m)[0m | ||||
| [38;2;248;248;242m                              [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Ready for writing [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m           [0m[38;2;249;38;114m#define[0m[38;2;190;132;255m [0m[38;2;166;226;46mPOLLEX_SET[0m[38;2;190;132;255m  [0m[38;2;190;132;255m([0m[38;2;190;132;255mEPOLLPRI[0m[38;2;190;132;255m)[0m | ||||
| [38;2;248;248;242m                              [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Exceptional condition [0m[38;2;117;113;94m*/[0m | ||||
|  | ||||
| [38;2;248;248;242m   Multithreaded applications[0m | ||||
| [38;2;248;248;242m       If a file descriptor being monitored by [0m[38;2;166;226;46mselect[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m is closed in another thread, the result is unspecified.  On  some  UNIX  sys‐[0m | ||||
| @@ -242,11 +242,11 @@ | ||||
|  | ||||
| [38;2;248;248;242m       The final argument of the [0m[38;2;166;226;46mpselect6[0m[38;2;249;38;114m([0m[38;2;249;38;114m)[0m[38;2;248;248;242m system call is not a sigset_t * pointer, but is instead a structure of the form:[0m | ||||
|  | ||||
| [38;2;248;248;242m           struct {[0m | ||||
| [38;2;248;248;242m               const kernel_sigset_t *ss;   /* Pointer to signal set */[0m | ||||
| [38;2;248;248;242m               size_t ss_len;               /* Size (in bytes) of object[0m | ||||
| [38;2;248;248;242m                                               pointed to by 'ss' */[0m | ||||
| [38;2;248;248;242m           };[0m | ||||
| [38;2;248;248;242m           [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m               [0m[38;2;249;38;114mconst[0m[38;2;248;248;242m kernel_sigset_t [0m[38;2;249;38;114m*[0m[38;2;248;248;242mss[0m[38;2;248;248;242m;[0m[38;2;248;248;242m   [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Pointer to signal set [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m               [0m[3;38;2;166;226;46msize_t[0m[38;2;248;248;242m ss_len[0m[38;2;248;248;242m;[0m[38;2;248;248;242m               [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Size (in bytes) of object[0m | ||||
| [38;2;117;113;94m                                               pointed to by 'ss' [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m           [0m[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m       This allows the system call to obtain both a pointer to the signal set and its size, while allowing for the fact that most ar‐[0m | ||||
| [38;2;248;248;242m       chitectures  support a maximum of 6 arguments to a system call.  See [0m[38;2;166;226;46msigprocmask[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m for a discussion of the difference between[0m | ||||
| @@ -283,40 +283,40 @@ | ||||
| [38;2;248;248;242m       by internally copying the timeout to a local variable and passing that variable to the system call.[0m | ||||
|  | ||||
| [38;2;253;151;31mEXAMPLES[0m | ||||
| [38;2;248;248;242m       #include <stdio.h>[0m | ||||
| [38;2;248;248;242m       #include <stdlib.h>[0m | ||||
| [38;2;248;248;242m       #include <sys/select.h>[0m | ||||
| [38;2;190;132;255m       [0m[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116mstdio.h[0m[38;2;230;219;116m>[0m | ||||
| [38;2;190;132;255m       [0m[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116mstdlib.h[0m[38;2;230;219;116m>[0m | ||||
| [38;2;190;132;255m       [0m[38;2;249;38;114m#include[0m[38;2;190;132;255m [0m[38;2;230;219;116m<[0m[38;2;230;219;116msys/select.h[0m[38;2;230;219;116m>[0m | ||||
|  | ||||
| [38;2;248;248;242m       int[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46mmain[0m[38;2;249;38;114m([0m[38;2;190;132;255mvoid[0m[38;2;249;38;114m)[0m | ||||
| [38;2;248;248;242m       {[0m | ||||
| [38;2;248;248;242m           fd_set rfds;[0m | ||||
| [38;2;248;248;242m           struct timeval tv;[0m | ||||
| [38;2;248;248;242m           int retval;[0m | ||||
| [38;2;248;248;242m       [0m[3;38;2;102;217;239mint[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46mmain[0m[38;2;248;248;242m([0m[3;38;2;102;217;239mvoid[0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m       [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m           fd_set rfds[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[3;38;2;102;217;239mstruct[0m[38;2;248;248;242m timeval tv[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[3;38;2;102;217;239mint[0m[38;2;248;248;242m retval[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m           /* Watch stdin (fd 0) to see when it has input. */[0m | ||||
| [38;2;248;248;242m           [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Watch stdin (fd 0) to see when it has input. [0m[38;2;117;113;94m*/[0m | ||||
|  | ||||
| [38;2;248;248;242m           [0m[38;2;166;226;46mFD_ZERO[0m[38;2;249;38;114m([0m[38;2;190;132;255m&rfds[0m[38;2;249;38;114m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[38;2;166;226;46mFD_SET[0m[38;2;249;38;114m([0m[38;2;190;132;255m0, &rfds[0m[38;2;249;38;114m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[38;2;248;248;242mFD_ZERO[0m[38;2;248;248;242m([0m[38;2;249;38;114m&[0m[38;2;248;248;242mrfds[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[38;2;248;248;242mFD_SET[0m[38;2;248;248;242m([0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242mrfds[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m           /* Wait up to five seconds. */[0m | ||||
| [38;2;248;248;242m           [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Wait up to five seconds. [0m[38;2;117;113;94m*/[0m | ||||
|  | ||||
| [38;2;248;248;242m           tv.tv_sec = 5;[0m | ||||
| [38;2;248;248;242m           tv.tv_usec = 0;[0m | ||||
| [38;2;248;248;242m           tv[0m[38;2;248;248;242m.[0m[38;2;255;255;255mtv_sec[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m5[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           tv[0m[38;2;248;248;242m.[0m[38;2;255;255;255mtv_usec[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m           retval = [0m[38;2;166;226;46mselect[0m[38;2;249;38;114m([0m[38;2;190;132;255m1, &rfds, NULL, NULL, &tv[0m[38;2;249;38;114m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           /* Don't rely on the value of tv now! */[0m | ||||
| [38;2;248;248;242m           retval [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242mselect[0m[38;2;248;248;242m([0m[38;2;190;132;255m1[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242mrfds[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mNULL[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255mNULL[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;249;38;114m&[0m[38;2;248;248;242mtv[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m Don't rely on the value of tv now! [0m[38;2;117;113;94m*/[0m | ||||
|  | ||||
| [38;2;248;248;242m           if (retval == [0m[38;2;166;226;46m-1[0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m               [0m[38;2;166;226;46mperror[0m[38;2;249;38;114m([0m[38;2;190;132;255m"select([0m[38;2;249;38;114m)[0m[38;2;248;248;242m");[0m | ||||
| [38;2;248;248;242m           else if (retval)[0m | ||||
| [38;2;248;248;242m               [0m[38;2;166;226;46mprintf[0m[38;2;249;38;114m([0m[38;2;190;132;255m"Data is available now.\n"[0m[38;2;249;38;114m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m               /* [0m[38;2;166;226;46mFD_ISSET[0m[38;2;249;38;114m([0m[38;2;190;132;255m0, &rfds[0m[38;2;249;38;114m)[0m[38;2;248;248;242m will be true. */[0m | ||||
| [38;2;248;248;242m           else[0m | ||||
| [38;2;248;248;242m               [0m[38;2;166;226;46mprintf[0m[38;2;249;38;114m([0m[38;2;190;132;255m"No data within five seconds.\n"[0m[38;2;249;38;114m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mretval [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m               [0m[38;2;102;217;239mperror[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mselect()[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m           [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242mretval[0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m               [0m[38;2;102;217;239mprintf[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mData is available now.[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m               [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m FD_ISSET(0, &rfds) will be true. [0m[38;2;117;113;94m*/[0m | ||||
| [38;2;248;248;242m           [0m[38;2;249;38;114melse[0m | ||||
| [38;2;248;248;242m               [0m[38;2;102;217;239mprintf[0m[38;2;248;248;242m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mNo data within five seconds.[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m"[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m           [0m[38;2;166;226;46mexit[0m[38;2;249;38;114m([0m[38;2;190;132;255mEXIT_SUCCESS[0m[38;2;249;38;114m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m       }[0m | ||||
| [38;2;248;248;242m           [0m[38;2;102;217;239mexit[0m[38;2;248;248;242m([0m[38;2;248;248;242mEXIT_SUCCESS[0m[38;2;248;248;242m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m       [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;253;151;31mSEE ALSO[0m | ||||
| [38;2;248;248;242m       [0m[38;2;166;226;46maccept[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mconnect[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mpoll[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mread[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mrecv[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mrestart_syscall[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46msend[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46msigprocmask[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mwrite[0m[38;2;249;38;114m([0m[38;2;190;132;255m2[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mepoll[0m[38;2;249;38;114m([0m[38;2;190;132;255m7[0m[38;2;249;38;114m)[0m[38;2;248;248;242m, [0m[38;2;166;226;46mtime[0m[38;2;249;38;114m([0m[38;2;190;132;255m7[0m[38;2;249;38;114m)[0m | ||||
|   | ||||
							
								
								
									
										25
									
								
								tests/syntax-tests/highlighted/PowerShell/test.ps1
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/syntax-tests/highlighted/PowerShell/test.ps1
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| [38;2;248;248;242m[0m[38;2;117;113;94m#[0m[38;2;117;113;94m PowerShell script for testing syntax highlighting[0m | ||||
|  | ||||
| [3;38;2;102;217;239mfunction[0m[38;2;248;248;242m [0m[38;2;166;226;46mGet-FutureTime[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mparam[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m[[0m[3;38;2;102;217;239mInt32[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mMinutes[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m    [0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255m$[0m[38;2;255;255;255mtime[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;102;217;239mGet-Date[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 [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;248;248;242m_[0m[38;2;255;255;255m.AddMinutes[0m[38;2;248;248;242m([0m[38;2;255;255;255m$[0m[38;2;255;255;255mMinutes[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;230;219;116m"[0m[38;2;230;219;116m{0:d2}:{1:d2}:{2:d2}[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m-f[0m[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;248;248;242m([0m[38;2;255;255;255m$[0m[38;2;255;255;255mtime[0m[38;2;255;255;255m.hour[0m[38;2;249;38;114m,[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mtime[0m[38;2;255;255;255m.minute[0m[38;2;249;38;114m,[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mtime[0m[38;2;255;255;255m.second[0m[38;2;248;248;242m)[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;255;255;255m$[0m[38;2;255;255;255menv:[0m[38;2;255;255;255mPATH[0m[38;2;248;248;242m [0m[38;2;249;38;114m-match[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m.*rust.*[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m   [0m[38;2;230;219;116m'[0m[38;2;230;219;116mPath contains Rust[0m[38;2;230;219;116m'[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mtry[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[38;2;249;38;114m&[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mcargo[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m--version[0m[38;2;230;219;116m"[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114mcatch[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[38;2;102;217;239mWrite-Error[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mFailed to run cargo[0m[38;2;230;219;116m"[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m   [0m[38;2;230;219;116m'[0m[38;2;230;219;116mPath does not contain Rust[0m[38;2;230;219;116m'[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m([0m[38;2;190;132;255m5[0m[38;2;249;38;114m..[0m[38;2;190;132;255m30[0m[38;2;248;248;242m)[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 [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;248;248;242m_[0m[38;2;248;248;242m [0m[38;2;249;38;114m%[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;190;132;255m2[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;190;132;255m2[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m-eq[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[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 [0m[38;2;248;248;242m{[0m[38;2;230;219;116m"[0m[38;2;230;219;116mIn {0} minutes, the time will be {1}.[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m-f[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;248;248;242m_[0m[38;2;249;38;114m,[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;248;248;242m([0m[38;2;248;248;242m [0m[38;2;102;217;239mGet-FutureTime[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;248;248;242m_[0m[38;2;248;248;242m [0m[38;2;248;248;242m)[0m[38;2;248;248;242m}[0m | ||||
| [38;2;255;255;255m$[0m[38;2;255;255;255mlater[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m  [0m[38;2;102;217;239mGet-FutureTime[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242mMinutes [0m[38;2;255;255;255m$[0m[38;2;248;248;242m([0m[38;2;248;248;242m [0m[38;2;102;217;239mGet-Random[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242mMinimum [0m[38;2;190;132;255m60[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242mMaximum [0m[38;2;190;132;255m120[0m[38;2;248;248;242m [0m[38;2;248;248;242m)[0m | ||||
| [38;2;230;219;116m"[0m[38;2;230;219;116mThe time will be [0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;255;255;255m$[0m[38;2;255;255;255mlater[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m later.[0m[38;2;230;219;116m"[0m | ||||
							
								
								
									
										219
									
								
								tests/syntax-tests/highlighted/QML/BatSyntaxTest.qml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										219
									
								
								tests/syntax-tests/highlighted/QML/BatSyntaxTest.qml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,219 @@ | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[4;38;2;102;217;239mQtQuick[0m[38;2;248;248;242m [0m[38;2;190;132;255m2.0[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;230;219;116m"../components"[0m | ||||
|  | ||||
| [3;38;2;166;226;46mPage[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m//[0m[38;2;117;113;94m properties[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mproperty[0m[38;2;248;248;242m [0m[38;2;255;255;255mbool[0m[38;2;248;248;242m [0m[38;2;230;219;116mstartup[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mreadonly[0m[38;2;248;248;242m [0m[38;2;255;255;255mproperty[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mvar[0m[38;2;248;248;242m [0m[38;2;230;219;116mvar1[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mreadonly[0m[38;2;248;248;242m [0m[38;2;255;255;255mproperty[0m[38;2;248;248;242m [0m[38;2;255;255;255mQtObject[0m[38;2;248;248;242m [0m[38;2;230;219;116mvar2[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;230;219;116mallowedOrientations[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mOrientation[0m[38;2;255;255;255m.[0m[38;2;255;255;255mAll[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m/*[0m[38;2;117;113;94m components [0m[38;2;117;113;94m*/[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mDBusServiceWatcher[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdbusService[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116mservice[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116morg.bat.service[0m[38;2;230;219;116m"[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116monRegisteredChanged[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m            [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mdbusService[0m[38;2;255;255;255m.[0m[38;2;255;255;255mregistered[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;255;255;255mannouncedNameField[0m[38;2;255;255;255m.[0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mdaemon[0m[38;2;255;255;255m.[0m[38;2;248;248;242mannouncedName[0m[38;2;248;248;242m()[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mComponent[0m[38;2;255;255;255m.[0m[38;2;255;255;255monCompleted[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[3;38;2;166;226;46mconsole[0m[38;2;255;255;255m.[0m[38;2;248;248;242mdebug[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mcompleted[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mFlickable[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255manchors[0m[38;2;255;255;255m.[0m[38;2;255;255;255mfill[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mparent[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116mcontentHeight[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mcolumn[0m[38;2;255;255;255m.[0m[38;2;255;255;255mheight[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116mvisible[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdbusService[0m[38;2;255;255;255m.[0m[38;2;255;255;255mregistered[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255mViewPlaceholder[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m            [0m[38;2;230;219;116menabled[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;249;38;114m![0m[38;2;255;255;255mstartup[0m | ||||
| [38;2;248;248;242m                     [0m[38;2;249;38;114m&&[0m[38;2;248;248;242m [0m[38;2;255;255;255mtrustedDevices[0m[38;2;255;255;255m.[0m[38;2;255;255;255mcount[0m[38;2;248;248;242m [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;174;129;255m0[0m | ||||
| [38;2;248;248;242m                     [0m[38;2;249;38;114m&&[0m[38;2;248;248;242m [0m[38;2;255;255;255mnearDevices[0m[38;2;255;255;255m.[0m[38;2;255;255;255mcount[0m[38;2;248;248;242m [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;174;129;255m0[0m | ||||
| [38;2;248;248;242m            [0m[38;2;230;219;116mtext[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242mqsTr[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mInstall Bat.[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255mColumn[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m            [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mcolumn[0m | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;230;219;116mwidth[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m[38;2;255;255;255m.[0m[38;2;255;255;255mwidth[0m | ||||
| [38;2;248;248;242m            [0m[38;2;230;219;116mspacing[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mpaddingLarge[0m | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mPageHeader[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mtitle[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242mqsTr[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mSyntax Test[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mTextField[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mannouncedNameField[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mwidth[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mparent[0m[38;2;255;255;255m.[0m[38;2;255;255;255mwidth[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mlabel[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242mqsTr[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mDevice Name[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mtext[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdbusService[0m[38;2;255;255;255m.[0m[38;2;255;255;255mregistered[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;255;255;255mdaemon[0m[38;2;255;255;255m.[0m[38;2;248;248;242mannouncedName[0m[38;2;248;248;242m()[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m | ||||
|  | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116monActiveFocusChanged[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mactiveFocus[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;249;38;114mreturn[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mtext[0m[38;2;255;255;255m.[0m[38;2;255;255;255mlength[0m[38;2;248;248;242m [0m[38;2;249;38;114m===[0m[38;2;248;248;242m [0m[38;2;174;129;255m0[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mtext[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mdaemon[0m[38;2;255;255;255m.[0m[38;2;248;248;242mannouncedName[0m[38;2;248;248;242m()[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mdaemon[0m[38;2;255;255;255m.[0m[38;2;248;248;242msetAnnouncedName[0m[38;2;255;255;255m([0m[38;2;255;255;255mtext[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mplaceholderText[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mtext[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m                [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m                [0m[38;2;255;255;255mEnterKey[0m[38;2;255;255;255m.[0m[38;2;255;255;255monClicked[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mannouncedNameField[0m[38;2;255;255;255m.[0m[38;2;255;255;255mfocus[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m | ||||
| [38;2;248;248;242m                [0m[38;2;255;255;255mEnterKey[0m[38;2;255;255;255m.[0m[38;2;255;255;255miconSource[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mimage://theme/icon-m-enter-close[0m[38;2;230;219;116m"[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mComponent[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceDelegate[0m | ||||
|  | ||||
| [38;2;248;248;242m                [0m[38;2;255;255;255mListItem[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mlistItem[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;255;255;255mproperty[0m[38;2;248;248;242m [0m[38;2;255;255;255mbool[0m[38;2;248;248;242m [0m[38;2;230;219;116mshowStatus[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceStatusLabel[0m[38;2;255;255;255m.[0m[38;2;255;255;255mtext[0m[38;2;255;255;255m.[0m[38;2;255;255;255mlength[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;230;219;116mwidth[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m[38;2;255;255;255m.[0m[38;2;255;255;255mwidth[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;230;219;116mheight[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mitemSizeMedium[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;255;255;255mImage[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255micon[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116msource[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255miconUrl[0m | ||||
|  | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mx[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhorizontalPageMargin[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255manchors[0m[38;2;255;255;255m.[0m[38;2;255;255;255mverticalCenter[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mparent[0m[38;2;255;255;255m.[0m[38;2;255;255;255mverticalCenter[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255msourceSize[0m[38;2;255;255;255m.[0m[38;2;255;255;255mwidth[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255miconSizeMedium[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255msourceSize[0m[38;2;255;255;255m.[0m[38;2;255;255;255mheight[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255miconSizeMedium[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;255;255;255mLabel[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceNameLabel[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255manchors[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mleft[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255micon[0m[38;2;255;255;255m.[0m[38;2;255;255;255mright[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mleftMargin[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mpaddingLarge[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mright[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mparent[0m[38;2;255;255;255m.[0m[38;2;255;255;255mright[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mrightMargin[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhorizontalPageMargin[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116my[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mlistItem[0m[38;2;255;255;255m.[0m[38;2;255;255;255mcontentHeight[0m[38;2;248;248;242m [0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;174;129;255m2[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;255;255;255mimplicitHeight[0m[38;2;248;248;242m [0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;174;129;255m2[0m | ||||
| [38;2;248;248;242m                           [0m[38;2;249;38;114m-[0m[38;2;248;248;242m [0m[38;2;255;255;255mshowStatus[0m[38;2;248;248;242m [0m[38;2;249;38;114m*[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mdeviceStatusLabel[0m[38;2;255;255;255m.[0m[38;2;255;255;255mimplicitHeight[0m[38;2;248;248;242m [0m[38;2;249;38;114m/[0m[38;2;248;248;242m [0m[38;2;174;129;255m2[0m[38;2;255;255;255m)[0m | ||||
|  | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mtext[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mname[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mcolor[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mlistItem[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhighlighted[0m | ||||
| [38;2;248;248;242m                               [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhighlightColor[0m | ||||
| [38;2;248;248;242m                               [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mprimaryColor[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mtruncationMode[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTruncationMode[0m[38;2;255;255;255m.[0m[38;2;255;255;255mFade[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mtextFormat[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mText[0m[38;2;255;255;255m.[0m[38;2;255;255;255mPlainText[0m | ||||
|  | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mBehavior[0m[38;2;248;248;242m [0m[38;2;255;255;255mon[0m[38;2;248;248;242m [0m[38;2;255;255;255my[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255mNumberAnimation[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;255;255;255mLabel[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceStatusLabel[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255manchors[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mleft[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceNameLabel[0m[38;2;255;255;255m.[0m[38;2;255;255;255mleft[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mtop[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceNameLabel[0m[38;2;255;255;255m.[0m[38;2;255;255;255mbottom[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mright[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mparent[0m[38;2;255;255;255m.[0m[38;2;255;255;255mright[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;230;219;116mrightMargin[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhorizontalPageMargin[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mtext[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mtrusted[0m[38;2;248;248;242m [0m[38;2;249;38;114m&&[0m[38;2;248;248;242m [0m[38;2;255;255;255mreachable[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                              [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;248;248;242mqsTr[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mConnected[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                              [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mhasPairingRequests[0m[38;2;248;248;242m [0m[38;2;249;38;114m||[0m[38;2;248;248;242m [0m[38;2;255;255;255mwaitsForPairing[0m | ||||
| [38;2;248;248;242m                                 [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;248;248;242mqsTr[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mPending pairing request ...[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mcolor[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mlistItem[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhighlighted[0m | ||||
| [38;2;248;248;242m                               [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255msecondaryHighlightColor[0m | ||||
| [38;2;248;248;242m                               [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255msecondaryColor[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mtruncationMode[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTruncationMode[0m[38;2;255;255;255m.[0m[38;2;255;255;255mFade[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mfont[0m[38;2;255;255;255m.[0m[38;2;255;255;255mpixelSize[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mfontSizeExtraSmall[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mopacity[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mshowStatus[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;174;129;255m1.0[0m[38;2;248;248;242m [0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;174;129;255m0.0[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mwidth[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mparent[0m[38;2;255;255;255m.[0m[38;2;255;255;255mwidth[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;230;219;116mtextFormat[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mText[0m[38;2;255;255;255m.[0m[38;2;255;255;255mPlainText[0m | ||||
|  | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mBehavior[0m[38;2;248;248;242m [0m[38;2;255;255;255mon[0m[38;2;248;248;242m [0m[38;2;255;255;255mopacity[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255mFadeAnimation[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m                    [0m[38;2;230;219;116monClicked[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                        [0m[38;2;255;255;255mpageStack[0m[38;2;255;255;255m.[0m[38;2;248;248;242mpush[0m[38;2;255;255;255m([0m | ||||
| [38;2;248;248;242m                            [0m[38;2;255;255;255mQt[0m[38;2;255;255;255m.[0m[38;2;248;248;242mresolvedUrl[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mDevicePage.qml[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m                            [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;230;219;116mdeviceId[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mid[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m                [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mDeviceListModel[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdevicelistModel[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mColumnView[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mid[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdevicesView[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mwidth[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m[38;2;255;255;255m.[0m[38;2;255;255;255mwidth[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mitemHeight[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mTheme[0m[38;2;255;255;255m.[0m[38;2;255;255;255mitemSizeMedium[0m | ||||
|  | ||||
|  | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mmodel[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mtrustedDevicesModel[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mdelegate[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceDelegate[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mvisible[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdevicesView[0m[38;2;255;255;255m.[0m[38;2;255;255;255mcount[0m[38;2;248;248;242m [0m[38;2;249;38;114m>[0m[38;2;248;248;242m [0m[38;2;174;129;255m0[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255mPullDownMenu[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;117;113;94m//[0m[38;2;117;113;94m            MenuItem {[0m | ||||
| [38;2;117;113;94m//[0m[38;2;117;113;94m                text: qsTr("About ...")[0m | ||||
| [38;2;117;113;94m//[0m[38;2;117;113;94m                onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))[0m | ||||
| [38;2;117;113;94m//[0m[38;2;117;113;94m            }[0m | ||||
|  | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mMenuItem[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116mtext[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242mqsTr[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mSettings ...[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m                [0m[38;2;230;219;116monClicked[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mpageStack[0m[38;2;255;255;255m.[0m[38;2;248;248;242mpush[0m[38;2;255;255;255m([0m[38;2;255;255;255mQt[0m[38;2;255;255;255m.[0m[38;2;248;248;242mresolvedUrl[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mSettingsPage.qml[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255mVerticalScrollDecorator[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;117;113;94m/*[0m | ||||
| [38;2;117;113;94m    Connections {[0m | ||||
| [38;2;117;113;94m        target: ui[0m | ||||
| [38;2;117;113;94m        onOpeningDevicePage: openDevicePage(deviceId)[0m | ||||
| [38;2;117;113;94m    }[0m[38;2;117;113;94m*/[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mTimer[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116minterval[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;174;129;255m1000[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116mrunning[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116mrepeat[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m | ||||
| [38;2;248;248;242m        [0m[38;2;230;219;116monTriggered[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mstartup[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mfunction[0m[38;2;166;226;46m [0m[38;2;166;226;46mopenDevicePage[0m[38;2;255;255;255m([0m[3;38;2;253;151;31mdeviceId[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m        [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;249;38;114mtypeof[0m[38;2;248;248;242m [0m[38;2;255;255;255mpageStack[0m[38;2;248;248;242m [0m[38;2;249;38;114m===[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mundefined[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m            [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[3;38;2;166;226;46mconsole[0m[38;2;255;255;255m.[0m[38;2;102;217;239mlog[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mopening device [0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m+[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceId[0m[38;2;255;255;255m)[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[3;38;2;166;226;46mwindow[0m[38;2;255;255;255m.[0m[38;2;248;248;242mactivate[0m[38;2;248;248;242m()[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[3;38;2;102;217;239mvar[0m[38;2;248;248;242m [0m[38;2;255;255;255mdevicePage[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mpageStack[0m[38;2;255;255;255m.[0m[38;2;248;248;242mfind[0m[38;2;255;255;255m([0m[3;38;2;102;217;239mfunction[0m[38;2;255;255;255m([0m[3;38;2;253;151;31mpage[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m            [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m[38;2;255;255;255m.[0m[38;2;255;255;255mobjectName[0m[38;2;248;248;242m [0m[38;2;249;38;114m===[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mDevicePage[0m[38;2;230;219;116m"[0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m}[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m        [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mdevicePage[0m[38;2;248;248;242m [0m[38;2;249;38;114m!==[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m[38;2;248;248;242m [0m[38;2;249;38;114m&&[0m[38;2;248;248;242m [0m[38;2;255;255;255mdevicePage[0m[38;2;255;255;255m.[0m[38;2;255;255;255mdeviceId[0m[38;2;248;248;242m [0m[38;2;249;38;114m===[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceId[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mpageStack[0m[38;2;255;255;255m.[0m[38;2;248;248;242mpop[0m[38;2;255;255;255m([0m[38;2;255;255;255mdevicePage[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mui[0m[38;2;255;255;255m.[0m[38;2;248;248;242mshowMainWindow[0m[38;2;248;248;242m()[0m | ||||
| [38;2;248;248;242m            [0m[38;2;249;38;114mreturn[0m | ||||
| [38;2;248;248;242m        [0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255mpageStack[0m[38;2;255;255;255m.[0m[38;2;248;248;242mpop[0m[38;2;255;255;255m([0m[38;2;255;255;255mpage[0m[38;2;248;248;242m, [0m[38;2;255;255;255mPageStackAction[0m[38;2;255;255;255m.[0m[38;2;255;255;255mImmediate[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m        [0m[38;2;255;255;255mpageStack[0m[38;2;255;255;255m.[0m[38;2;248;248;242mpush[0m[38;2;255;255;255m([0m | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mQt[0m[38;2;255;255;255m.[0m[38;2;248;248;242mresolvedUrl[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mDevicePage.qml[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m            [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;230;219;116mdeviceId[0m[38;2;190;132;255m:[0m[38;2;248;248;242m [0m[38;2;255;255;255mdeviceId[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m            [0m[38;2;255;255;255mPageStackAction[0m[38;2;255;255;255m.[0m[38;2;255;255;255mImmediate[0m[38;2;255;255;255m)[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m}[0m | ||||
							
								
								
									
										57
									
								
								tests/syntax-tests/highlighted/SLS/test.sls
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								tests/syntax-tests/highlighted/SLS/test.sls
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| [38;2;249;38;114mrequired_packages[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mpkg.installed[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mpkgs[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116mgit[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116mperl[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116mfortune[0m | ||||
|  | ||||
| [38;2;249;38;114mcowsay_source[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mgit.latest[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mhttps://github.com/jasonm23/cowsay.git[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mtarget[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m/root/cowsay[0m | ||||
|  | ||||
| [38;2;249;38;114mrun_installer[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mcmd.run[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m./install.sh /usr/local[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mcwd[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m/root/cowsay[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114monchanges[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mgit[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mcowsay_source[0m | ||||
|  | ||||
| [38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mcowfiles[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255msalt[0m[38;2;248;248;242m.[0m[38;2;255;255;255mcmd[0m[38;2;248;248;242m.[0m[38;2;255;255;255mrun[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;230;219;116mcowsay -l[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m.[0m[38;2;255;255;255msplit[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m[[0m[38;2;248;248;242m1[0m[38;2;248;248;242m:[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
| [38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mascii_arts[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mcowfiles[0m[38;2;248;248;242m [0m[38;2;248;248;242m|[0m[38;2;248;248;242m [0m[38;2;255;255;255mjoin[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;230;219;116m [0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
|  | ||||
| [38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;255;255;255mascii_art[0m[38;2;248;248;242m [0m[38;2;249;38;114min[0m[38;2;248;248;242m [0m[38;2;255;255;255mascii_arts[0m[38;2;248;248;242m.[0m[38;2;255;255;255msplit[0m[38;2;248;248;242m([0m[38;2;230;219;116m'[0m[38;2;230;219;116m [0m[38;2;230;219;116m'[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
| [38;2;249;38;114mrun_cowsay_{{ ascii_art }}[0m[38;2;248;248;242m:[0m[38;2;117;113;94m [0m[38;2;117;113;94m#[0m[38;2;117;113;94m name must be unique[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mcmd.run[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255mascii_art[0m[38;2;248;248;242m [0m[38;2;249;38;114mis[0m[38;2;248;248;242m [0m[38;2;255;255;255min[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;230;219;116m'[0m[38;2;230;219;116mhead-in[0m[38;2;230;219;116m'[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116msodomized[0m[38;2;230;219;116m'[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mtelebears[0m[38;2;230;219;116m'[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mecho cowsay -f {{ ascii_art }} should not be used[0m | ||||
| [38;2;248;248;242m    [0m[38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mfortune | cowsay -f {{ ascii_art }}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mendif[0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
| [38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mendfor[0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
|  | ||||
| [38;2;249;38;114mecho_pillar_demo_1[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mcmd.run[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mecho {{ pillar.demo_text | default('pillar not defined') }}[0m[38;2;230;219;116m"[0m | ||||
|  | ||||
| [38;2;249;38;114mecho_pillar_demo_2[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mcmd.run[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mecho {{ pillar.demo.text | default('pillar not defined') }}[0m[38;2;230;219;116m"[0m | ||||
|  | ||||
| [38;2;117;113;94m#[0m[38;2;117;113;94m Comment[0m | ||||
| [38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mrand[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255msalt[0m[38;2;248;248;242m[[0m[38;2;230;219;116m'[0m[38;2;230;219;116mrandom.get_str[0m[38;2;230;219;116m'[0m[38;2;248;248;242m][0m[38;2;248;248;242m([0m[38;2;248;248;242m20[0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
| [38;2;166;226;46m{%[0m[38;2;248;248;242m [0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mIP_Address[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mpillar[0m[38;2;248;248;242m[[0m[38;2;230;219;116m'[0m[38;2;230;219;116mIP_Address[0m[38;2;230;219;116m'[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;166;226;46m%}[0m | ||||
|  | ||||
| [38;2;249;38;114mwait[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mcmd.run[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116msleep 210[0m[38;2;117;113;94m  [0m[38;2;117;113;94m#[0m[38;2;117;113;94m another comment[0m | ||||
|  | ||||
| [38;2;249;38;114mcreate_roster_file[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mfile.managed[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m/tmp/salt-roster-{{ rand }}[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mcontents[0m[38;2;248;248;242m:[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mswitch:[0m[38;2;230;219;116m'[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m  host: {{ IP_Address }}[0m[38;2;230;219;116m'[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m  user: test[0m[38;2;230;219;116m"[0m | ||||
| [38;2;248;248;242m      [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m  passwd: {{ passwd }}[0m[38;2;230;219;116m"[0m | ||||
|  | ||||
							
								
								
									
										57
									
								
								tests/syntax-tests/highlighted/Svelte/App.svelte
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								tests/syntax-tests/highlighted/Svelte/App.svelte
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| [38;2;255;255;255m<[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255monMount[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116msvelte[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mList[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m./List.svelte[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mItem[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m./Item.svelte[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[3;38;2;102;217;239mlet[0m[38;2;248;248;242m [0m[38;2;255;255;255mitem[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m	[0m[3;38;2;102;217;239mlet[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[3;38;2;102;217;239masync[0m[38;2;166;226;46m [0m[3;38;2;102;217;239mfunction[0m[38;2;166;226;46m [0m[38;2;166;226;46mhashchange[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m		[0m[38;2;117;113;94m//[0m[38;2;117;113;94m the poor man's router![0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;255;255;255mpath[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mwindow[0m[38;2;255;255;255m.[0m[38;2;255;255;255mlocation[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhash[0m[38;2;255;255;255m.[0m[38;2;248;248;242mslice[0m[38;2;255;255;255m([0m[38;2;174;129;255m1[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m		[0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mpath[0m[38;2;255;255;255m.[0m[38;2;248;248;242mstartsWith[0m[38;2;255;255;255m([0m[38;2;230;219;116m'[0m[38;2;230;219;116m/item[0m[38;2;230;219;116m'[0m[38;2;255;255;255m)[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m			[0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;255;255;255mid[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mpath[0m[38;2;255;255;255m.[0m[38;2;248;248;242mslice[0m[38;2;255;255;255m([0m[38;2;174;129;255m6[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m			[0m[38;2;255;255;255mitem[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114mawait[0m[38;2;248;248;242m [0m[38;2;248;248;242mfetch[0m[38;2;255;255;255m([0m[38;2;249;38;114m`[0m[38;2;230;219;116mh[0m[38;2;230;219;116mt[0m[38;2;230;219;116mt[0m[38;2;230;219;116mp[0m[38;2;230;219;116ms[0m[38;2;230;219;116m:[0m[38;2;230;219;116m/[0m[38;2;230;219;116m/[0m[38;2;230;219;116mn[0m[38;2;230;219;116mo[0m[38;2;230;219;116md[0m[38;2;230;219;116me[0m[38;2;230;219;116m-[0m[38;2;230;219;116mh[0m[38;2;230;219;116mn[0m[38;2;230;219;116ma[0m[38;2;230;219;116mp[0m[38;2;230;219;116mi[0m[38;2;230;219;116m.[0m[38;2;230;219;116mh[0m[38;2;230;219;116me[0m[38;2;230;219;116mr[0m[38;2;230;219;116mo[0m[38;2;230;219;116mk[0m[38;2;230;219;116mu[0m[38;2;230;219;116ma[0m[38;2;230;219;116mp[0m[38;2;230;219;116mp[0m[38;2;230;219;116m.[0m[38;2;230;219;116mc[0m[38;2;230;219;116mo[0m[38;2;230;219;116mm[0m[38;2;230;219;116m/[0m[38;2;230;219;116mi[0m[38;2;230;219;116mt[0m[38;2;230;219;116me[0m[38;2;230;219;116mm[0m[38;2;230;219;116m/[0m[38;2;249;38;114m${[0m[38;2;255;255;255mid[0m[38;2;249;38;114m}[0m[38;2;249;38;114m`[0m[38;2;255;255;255m)[0m[38;2;255;255;255m.[0m[38;2;248;248;242mthen[0m[38;2;255;255;255m([0m[3;38;2;253;151;31mr[0m[38;2;248;248;242m [0m[3;38;2;102;217;239m=>[0m[38;2;248;248;242m [0m[38;2;255;255;255mr[0m[38;2;255;255;255m.[0m[38;2;248;248;242mjson[0m[38;2;248;248;242m()[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m			[0m[3;38;2;166;226;46mwindow[0m[38;2;255;255;255m.[0m[38;2;248;248;242mscrollTo[0m[38;2;255;255;255m([0m[38;2;174;129;255m0[0m[38;2;248;248;242m,[0m[38;2;174;129;255m0[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m		[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m[38;2;255;255;255mpath[0m[38;2;255;255;255m.[0m[38;2;248;248;242mstartsWith[0m[38;2;255;255;255m([0m[38;2;230;219;116m'[0m[38;2;230;219;116m/top[0m[38;2;230;219;116m'[0m[38;2;255;255;255m)[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m			[0m[38;2;255;255;255mpage[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;255;255;255mpath[0m[38;2;255;255;255m.[0m[38;2;248;248;242mslice[0m[38;2;255;255;255m([0m[38;2;174;129;255m5[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m			[0m[38;2;255;255;255mitem[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m		[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m			[0m[3;38;2;166;226;46mwindow[0m[38;2;255;255;255m.[0m[38;2;255;255;255mlocation[0m[38;2;255;255;255m.[0m[38;2;255;255;255mhash[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116m/top/1[0m[38;2;230;219;116m'[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m		[0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m	[0m[38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[38;2;248;248;242monMount[0m[38;2;255;255;255m([0m[38;2;255;255;255mhashchange[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;255;255;255m</[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m | ||||
|  | ||||
| [38;2;255;255;255m<[0m[38;2;249;38;114mstyle[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mmain[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mposition[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mrelative[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mmax-width[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m800[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mmargin[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;102;217;239mauto[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mmin-height[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m101[0m[38;2;249;38;114mvh[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mpadding[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;249;38;114mem[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255m}[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mmain[0m[38;2;248;248;242m [0m[38;2;166;226;46m:[0m[38;2;166;226;46mglobal[0m[38;2;248;248;242m([0m[38;2;166;226;46m.[0m[38;2;166;226;46mmeta[0m[38;2;248;248;242m) [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m#[0m[38;2;190;132;255m999[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mfont-size[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m12[0m[38;2;249;38;114mpx[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mmargin[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;249;38;114mem[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255m}[0m | ||||
|  | ||||
| [38;2;248;248;242m	[0m[38;2;249;38;114mmain[0m[38;2;248;248;242m [0m[38;2;166;226;46m:[0m[38;2;166;226;46mglobal[0m[38;2;248;248;242m([0m[38;2;249;38;114ma[0m[38;2;248;248;242m) [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m		[0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mrgb[0m[38;2;255;255;255m([0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m0[0m[38;2;248;248;242m,[0m[38;2;190;132;255m150[0m[38;2;255;255;255m)[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m	[0m[38;2;255;255;255m}[0m | ||||
| [38;2;255;255;255m</[0m[38;2;249;38;114mstyle[0m[38;2;255;255;255m>[0m | ||||
|  | ||||
| [38;2;255;255;255m<[0m[38;2;249;38;114msvelte:window[0m[38;2;248;248;242m [0m[38;2;102;217;239mon[0m[38;2;166;226;46m:[0m[38;2;230;219;116mhashchange[0m[38;2;166;226;46m=[0m[38;2;248;248;242m{[0m[38;2;255;255;255mhashchange[0m[38;2;248;248;242m}[0m[38;2;255;255;255m/>[0m | ||||
|  | ||||
| [38;2;255;255;255m<[0m[38;2;249;38;114mmain[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m	[0m[38;2;248;248;242m{[0m[38;2;249;38;114m#if[0m[38;2;248;248;242m [0m[38;2;255;255;255mitem[0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m		[0m[38;2;255;255;255m<[0m[38;2;249;38;114mItem[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;255;255;255mitem[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;166;226;46mreturnTo[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116m#/top/[0m[38;2;230;219;116m{[0m[38;2;255;255;255mpage[0m[38;2;230;219;116m}[0m[38;2;255;255;255m"[0m[38;2;255;255;255m/>[0m | ||||
| [38;2;248;248;242m	[0m[38;2;248;248;242m{[0m[38;2;249;38;114m:else if[0m[38;2;248;248;242m [0m[38;2;255;255;255mpage[0m[38;2;248;248;242m}[0m | ||||
| [38;2;248;248;242m		[0m[38;2;255;255;255m<[0m[38;2;249;38;114mList[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;255;255;255mpage[0m[38;2;248;248;242m}[0m[38;2;255;255;255m/>[0m | ||||
| [38;2;248;248;242m	[0m[38;2;248;248;242m{[0m[38;2;249;38;114m/if[0m[38;2;248;248;242m}[0m | ||||
| [38;2;255;255;255m</[0m[38;2;249;38;114mmain[0m[38;2;255;255;255m>[0m | ||||
							
								
								
									
										55
									
								
								tests/syntax-tests/highlighted/Vue/example.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								tests/syntax-tests/highlighted/Vue/example.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | ||||
| [38;2;255;255;255m<[0m[38;2;249;38;114mtemplate[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m  [0m[38;2;255;255;255m<[0m[38;2;249;38;114mdiv[0m[38;2;248;248;242m [0m[38;2;166;226;46mid[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mapp[0m[38;2;255;255;255m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mclass[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mcontainer-fluid[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255m<[0m[38;2;249;38;114mAppHeader[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mAppHeader[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtransition[0m[38;2;248;248;242m [0m[38;2;166;226;46mname[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mpage[0m[38;2;255;255;255m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mmode[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mout-in[0m[38;2;255;255;255m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mv-if[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;249;38;114m![0m[38;2;255;255;255misLoading[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m      [0m[38;2;255;255;255m<[0m[38;2;249;38;114mrouter-view[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mrouter-view[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtransition[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255m<[0m[38;2;249;38;114mAppLoadingIndicator[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mAppLoadingIndicator[0m[38;2;255;255;255m>[0m | ||||
| [38;2;248;248;242m  [0m[38;2;255;255;255m</[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m | ||||
| [38;2;255;255;255m</[0m[38;2;249;38;114mtemplate[0m[38;2;255;255;255m>[0m | ||||
|  | ||||
| [38;2;255;255;255m<[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mAppHeader[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m@/components/AppHeader[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;255;255;255mAppLoadingIndicator[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m@/components/AppLoadingIndicator[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m | ||||
| [38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255mmapGetters[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mvuex[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;249;38;114mexport[0m[38;2;248;248;242m [0m[38;2;249;38;114mdefault[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m  [0m[38;2;255;255;255mname[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mApp[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m  [0m[38;2;255;255;255mcomponents[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mAppHeader[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mAppLoadingIndicator[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m  [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m  [0m[38;2;166;226;46mbeforeCreate[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mthis[0m[38;2;255;255;255m.[0m[38;2;255;255;255m$store[0m[38;2;255;255;255m.[0m[38;2;248;248;242mdispatch[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mfetchData[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m  [0m[38;2;255;255;255mdata[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;255;255;255mmessage[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello![0m[38;2;230;219;116m"[0m | ||||
| [38;2;248;248;242m  [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m  [0m[38;2;255;255;255mcomputed[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114m...[0m[38;2;248;248;242mmapGetters[0m[38;2;255;255;255m([0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m      [0m[38;2;255;255;255misLoading[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116misLoading[0m[38;2;230;219;116m"[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m    [0m[38;2;248;248;242m}[0m[38;2;255;255;255m)[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m  [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m | ||||
| [38;2;248;248;242m}[0m[38;2;248;248;242m;[0m | ||||
| [38;2;255;255;255m</[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m | ||||
|  | ||||
| [38;2;255;255;255m<[0m[38;2;249;38;114mstyle[0m[38;2;255;255;255m>[0m | ||||
| [38;2;249;38;114mbody[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mbackground-color[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mrgba[0m[38;2;255;255;255m([0m[38;2;190;132;255m72[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m163[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m184[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;190;132;255m.[0m[38;2;190;132;255m05[0m[38;2;255;255;255m)[0m[38;2;248;248;242m [0m[38;2;249;38;114m!important[0m[38;2;255;255;255m;[0m | ||||
| [38;2;255;255;255m}[0m | ||||
|  | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mpage-enter-active[0m[38;2;248;248;242m,[0m | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mpage-leave-active[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mtransition[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mopacity[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;190;132;255m.[0m[38;2;190;132;255m2[0m[38;2;249;38;114ms[0m[38;2;255;255;255m;[0m | ||||
| [38;2;255;255;255m}[0m | ||||
|  | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mpage-enter[0m[38;2;248;248;242m,[0m | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mpage-leave-active[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mopacity[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;255;255;255m;[0m | ||||
| [38;2;255;255;255m}[0m | ||||
|  | ||||
| [38;2;166;226;46m.[0m[38;2;166;226;46mpage-enter[0m[38;2;166;226;46m:[0m[38;2;166;226;46mhover[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;102;217;239mopacity[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m1[0m[38;2;255;255;255m;[0m | ||||
| [38;2;255;255;255m}[0m | ||||
|  | ||||
| [38;2;255;255;255m</[0m[38;2;249;38;114mstyle[0m[38;2;255;255;255m>[0m | ||||
							
								
								
									
										140
									
								
								tests/syntax-tests/highlighted/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								tests/syntax-tests/highlighted/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,140 @@ | ||||
| [38;2;117;113;94m#user  nobody;[0m | ||||
| [38;2;249;38;114mworker_processes[0m[38;2;255;255;255m  [0m[38;2;230;219;116m1[0m[38;2;255;255;255m;[0m | ||||
| [38;2;117;113;94m#pid        logs/nginx.pid;[0m | ||||
|  | ||||
| [38;2;249;38;114mload_module[0m[38;2;255;255;255m [0m[38;2;230;219;116m"/usr/local/libexec/nginx/ngx_http_xslt_filter_module.so"[0m[38;2;255;255;255m;[0m | ||||
| [38;2;249;38;114mload_module[0m[38;2;255;255;255m [0m[38;2;230;219;116m"/usr/local/libexec/nginx/ngx_rtmp_module.so"[0m[38;2;255;255;255m;[0m | ||||
|  | ||||
| [3;38;2;102;217;239mevents[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mworker_connections[0m[38;2;255;255;255m  [0m[38;2;230;219;116m1024[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mhttp[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114minclude[0m[38;2;255;255;255m       mime.types;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mdefault_type[0m[38;2;255;255;255m  application/octet-stream;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114msendfile[0m[38;2;255;255;255m       [0m[38;2;190;132;255m on[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mkeepalive_timeout[0m[38;2;255;255;255m  [0m[38;2;230;219;116m65[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mgzip[0m[38;2;255;255;255m [0m[38;2;190;132;255m on[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mgzip_disable[0m[38;2;255;255;255m [0m[38;2;230;219;116m"msie6"[0m[38;2;255;255;255m;[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114minclude[0m[38;2;255;255;255m /usr/local/etc/nginx/sites.d/*;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [38;2;249;38;114mrtmp[0m[38;2;255;255;255m {[0m | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mserver[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mlisten[0m[38;2;255;255;255m [0m[38;2;230;219;116m1935[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mmax_message[0m[38;2;255;255;255m 10M;[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mapplication[0m[38;2;255;255;255m wnob {[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mlive[0m[38;2;255;255;255m on;[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mrecord[0m[38;2;255;255;255m off;[0m | ||||
| [38;2;248;248;242m    }[0m | ||||
|  | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mapplication[0m[38;2;255;255;255m strim {[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mlive[0m[38;2;255;255;255m on;[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls[0m[38;2;255;255;255m on;[0m | ||||
|  | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls_path[0m[38;2;255;255;255m /usr/local/www/hls/;[0m | ||||
|  | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls_variant[0m[38;2;255;255;255m _low BANDWIDTH=250000;[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls_variant[0m[38;2;255;255;255m _mid BANDWIDTH=500000;[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls_variant[0m[38;2;255;255;255m _high BANDWIDTH=1000000;[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls_variant[0m[38;2;255;255;255m _hd720 BANDWIDTH=1500000;[0m | ||||
| [38;2;248;248;242m      [0m[38;2;249;38;114mhls_variant[0m[38;2;255;255;255m _src BANDWIDTH=2000000;[0m | ||||
| [38;2;248;248;242m    }[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mserver[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mlisten[0m[38;2;255;255;255m [0m[38;2;230;219;116m443[0m[38;2;255;255;255m ssl;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mserver_name[0m[38;2;255;255;255m host.example.com[0m | ||||
| [38;2;255;255;255m  root /usr/local/www/host.example.com/;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114merror_page[0m[38;2;255;255;255m [0m[38;2;230;219;116m404[0m[38;2;255;255;255m /404.html;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mindex[0m[38;2;255;255;255m index.html;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mautoindex[0m[38;2;190;132;255m on[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mautoindex_localtime[0m[38;2;190;132;255m off[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mautoindex_format[0m[38;2;255;255;255m xml;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m [0m[38;2;166;226;46m/ [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mxslt_stylesheet[0m[38;2;255;255;255m /usr/local/www/host.example.com/index.xslt;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m ~ [0m[38;2;246;170;17m/\..* [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;102;217;239mreturn[0m[38;2;255;255;255m [0m[38;2;230;219;116m404[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m ~ [0m[38;2;246;170;17m/.+/ [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mxslt_stylesheet[0m[38;2;255;255;255m /usr/local/www/host.example.com/project.xslt;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m ~ [0m[38;2;246;170;17m/.*\.xslt/ [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;102;217;239mreturn[0m[38;2;255;255;255m [0m[38;2;230;219;116m404[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m ~ [0m[38;2;246;170;17m\.thumb\.png$ [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114merror_page[0m[38;2;255;255;255m [0m[38;2;230;219;116m404[0m[38;2;255;255;255m /404.thumb.png;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mssl_certificate[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/live/host.example.com/fullchain.pem;[0m[38;2;248;248;242m [0m[38;2;117;113;94m# managed by Certbot[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mssl_certificate_key[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/live/host.example.com/privkey.pem;[0m[38;2;248;248;242m [0m[38;2;117;113;94m# managed by Certbot[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114minclude[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/options-ssl-nginx.conf;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mssl_dhparam[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/ssl-dhparams.pem;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114madd_header[0m[38;2;255;255;255m Strict-Transport-Security [0m[38;2;230;219;116m"max-age=31536000"[0m[38;2;255;255;255m always;[0m | ||||
|  | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mserver[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mlisten[0m[38;2;255;255;255m [0m[38;2;230;219;116m80[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mserver_name[0m[38;2;255;255;255m host.example.com;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mif[0m[38;2;248;248;242m ([0m[38;2;255;255;255m$host[0m[38;2;248;248;242m = host.example.com) [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;102;217;239mreturn[0m[38;2;255;255;255m [0m[38;2;230;219;116m301[0m[38;2;255;255;255m https://[0m[38;2;255;255;255m$host[0m[38;2;255;255;255m$request_uri[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;102;217;239mreturn[0m[38;2;255;255;255m [0m[38;2;230;219;116m404[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mserver[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mlisten[0m[38;2;255;255;255m [0m[38;2;230;219;116m443[0m[38;2;255;255;255m ssl;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mserver_name[0m[38;2;255;255;255m other.example.com;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mssl_certificate[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/live/other.example.com/fullchain.pem;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mssl_certificate_key[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/live/other.example.com/privkey.pem;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114minclude[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/options-ssl-nginx.conf;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mssl_dhparam[0m[38;2;255;255;255m /usr/local/etc/letsencrypt/ssl-dhparams.pem;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114madd_header[0m[38;2;255;255;255m Strict-Transport-Security [0m[38;2;230;219;116m"max-age=31536000"[0m[38;2;255;255;255m always;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114maccess_log[0m[38;2;255;255;255m /home/otherapp/logs/access.log;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114merror_log[0m[38;2;255;255;255m /home/otherapp/logs/error.log;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mclient_max_body_size[0m[38;2;255;255;255m [0m[38;2;190;132;255m5M[0m[38;2;255;255;255m;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m [0m[38;2;166;226;46m/ [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mroot[0m[38;2;255;255;255m /home/otherapp/app/static;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mindex[0m[38;2;255;255;255m man.txt;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mtry_files[0m[38;2;255;255;255m [0m[38;2;255;255;255m$uri[0m[38;2;255;255;255m @proxy;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[3;38;2;102;217;239mlocation[0m[38;2;248;248;242m [0m[38;2;166;226;46m@proxy [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mproxy_set_header[0m[38;2;255;255;255m Host [0m[38;2;255;255;255m$http_host[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mproxy_set_header[0m[38;2;255;255;255m X-Forwarded-Host [0m[38;2;255;255;255m$host[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mproxy_set_header[0m[38;2;255;255;255m X-Real-IP [0m[38;2;255;255;255m$remote_addr[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mproxy_set_header[0m[38;2;255;255;255m X-Forwarded-For [0m[38;2;255;255;255m$proxy_add_x_forwarded_for[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m    [0m[38;2;249;38;114mproxy_pass[0m[38;2;255;255;255m http://unix:/var/run/otherapp/sock:;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
| [38;2;248;248;242m}[0m | ||||
|  | ||||
| [3;38;2;102;217;239mserver[0m[38;2;248;248;242m {[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mlisten[0m[38;2;255;255;255m [0m[38;2;230;219;116m80[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mserver_name[0m[38;2;255;255;255m other.example.com;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;249;38;114mif[0m[38;2;248;248;242m ([0m[38;2;255;255;255m$host[0m[38;2;248;248;242m = other.example.com) [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m    [0m[38;2;102;217;239mreturn[0m[38;2;255;255;255m [0m[38;2;230;219;116m301[0m[38;2;255;255;255m https://[0m[38;2;255;255;255m$host[0m[38;2;255;255;255m$request_uri[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m  }[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;102;217;239mreturn[0m[38;2;255;255;255m [0m[38;2;230;219;116m404[0m[38;2;255;255;255m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
							
								
								
									
										15
									
								
								tests/syntax-tests/highlighted/nix/test.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/syntax-tests/highlighted/nix/test.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| [38;2;248;248;242m{[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mnixpkgs[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;230;219;116m<nixpkgs>[0m | ||||
| [38;2;249;38;114m,[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mnixpkgs'[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;102;217;239mimport[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mnixpkgs[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m}[0m[38;2;248;248;242m}[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;249;38;114mwith[0m[38;2;248;248;242m [0m[3;38;2;253;151;31mnixpkgs'[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;117;113;94m# some comment[0m | ||||
| [3;38;2;253;151;31mstdenv[0m[38;2;249;38;114m.[0m[3;38;2;253;151;31mmkDerivation[0m[38;2;248;248;242m [0m[38;2;249;38;114mrec[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m | ||||
| [38;2;248;248;242m  [0m[38;2;166;226;46mpname[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mtest[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;166;226;46mversion[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m0.2.3[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m  [0m[38;2;166;226;46mname[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[3;38;2;228;46;112m${[0m[3;38;2;253;151;31mpname[0m[3;38;2;228;46;112m}[0m[38;2;230;219;116m-[0m[3;38;2;228;46;112m${[0m[3;38;2;253;151;31mversion[0m[3;38;2;228;46;112m}[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m | ||||
|  | ||||
| [38;2;248;248;242m  [0m[38;2;166;226;46mbuildInputs[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;253;151;31mgzip[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;253;151;31mbzip2[0m | ||||
| [38;2;248;248;242m    [0m[3;38;2;253;151;31mpython27[0m | ||||
| [38;2;248;248;242m  [0m[38;2;248;248;242m][0m[38;2;248;248;242m;[0m | ||||
| [38;2;248;248;242m}[0m | ||||
							
								
								
									
										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 | ||||
|  | ||||
							
								
								
									
										44
									
								
								tests/syntax-tests/source/D/test.d
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								tests/syntax-tests/source/D/test.d
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| // selective import | ||||
| import std.stdio : writeln, writefln; | ||||
| // non-selective import | ||||
| import std.algorithm; | ||||
|  | ||||
| /* a multiline comment | ||||
| * | ||||
| * this function is safe because it doesn't use pointer arithmetic | ||||
| */ | ||||
| int the_ultimate_answer() @safe { | ||||
| 	// assert1on | ||||
| 	assert(1 != 2); | ||||
|         // now we can safely return our answer	 | ||||
| 	return 42; | ||||
| } | ||||
|  | ||||
| void main() | ||||
| { | ||||
|     // function call with string literal | ||||
|     writeln("Hello World!"); | ||||
|  | ||||
|     // an int array declaration | ||||
|     int[] arr1 = [1, 2, 3]; | ||||
|     // an immutable double | ||||
|     immutable double pi = 3.14; | ||||
|     // a mutable double | ||||
|     double d1 = pi; | ||||
|     // a pointer | ||||
|     double* dp1 = &d1; | ||||
|     // another pointer to the same thingy | ||||
|     auto a1 = &d1; | ||||
|     // a constant bool | ||||
|     const bool b1 = true; | ||||
|     if (b1) { | ||||
| 	    // another function call  | ||||
| 	    writefln("%s\n%s\n%s\n", arr1, d1, the_ultimate_answer()); | ||||
|     } | ||||
|     else if (!b1) { | ||||
| 	    writeln("this seems wrong"); | ||||
|     } | ||||
|     else { | ||||
| 	    writeln("I'm giving up, this is too crazy for me"); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										67
									
								
								tests/syntax-tests/source/EtcGroup/test.group
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								tests/syntax-tests/source/EtcGroup/test.group
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| root:x:0:root | ||||
| sys:x:3:bin | ||||
| mem:x:8: | ||||
| ftp:x:11: | ||||
| mail:x:12: | ||||
| log:x:19: | ||||
| smmsp:x:25: | ||||
| proc:x:26:polkitd | ||||
| games:x:50: | ||||
| lock:x:54: | ||||
| network:x:90: | ||||
| floppy:x:94: | ||||
| scanner:x:96: | ||||
| power:x:98: | ||||
| adm:x:999:daemon | ||||
| wheel:x:998:username | ||||
| kmem:x:997: | ||||
| tty:x:5: | ||||
| utmp:x:996: | ||||
| audio:x:995:mpd,username | ||||
| disk:x:994: | ||||
| input:x:993: | ||||
| kvm:x:992: | ||||
| lp:x:991: | ||||
| optical:x:990:username | ||||
| render:x:989: | ||||
| storage:x:988:username | ||||
| uucp:x:987: | ||||
| video:x:986:username | ||||
| users:x:985: | ||||
| systemd-journal:x:984: | ||||
| rfkill:x:983: | ||||
| bin:x:1:daemon | ||||
| daemon:x:2:bin | ||||
| http:x:33: | ||||
| nobody:x:65534: | ||||
| dbus:x:81: | ||||
| systemd-journal-remote:x:982: | ||||
| systemd-network:x:981: | ||||
| systemd-resolve:x:980: | ||||
| systemd-timesync:x:979: | ||||
| systemd-coredump:x:978: | ||||
| uuidd:x:68: | ||||
| username:x:1000: | ||||
| git:x:977: | ||||
| avahi:x:976: | ||||
| colord:x:975: | ||||
| polkitd:x:102: | ||||
| mpd:x:45: | ||||
| rtkit:x:133: | ||||
| transmission:x:169: | ||||
| wireshark:x:150:username | ||||
| lightdm:x:974: | ||||
| geoclue:x:973: | ||||
| usbmux:x:140: | ||||
| dhcpcd:x:972: | ||||
| brlapi:x:971: | ||||
| gdm:x:120: | ||||
| libvirt:x:970: | ||||
| flatpak:x:969: | ||||
| gluster:x:968: | ||||
| rpc:x:32: | ||||
| tor:x:43: | ||||
| rslsync:x:967: | ||||
| docker:x:966:username | ||||
| sambashare:x:1002:username | ||||
| named:x:40: | ||||
| @@ -0,0 +1,16 @@ | ||||
| # | ||||
| # Comment | ||||
|  | ||||
| [attr]binary -diff -merge -text | ||||
|  | ||||
| *          text=auto | ||||
| *.c        diff=c | ||||
| *.cc       text diff=cpp | ||||
| *.o        binary | ||||
| *.bat      text eol=crlf | ||||
| *.lock     text -diff | ||||
| *.*ignore  text | ||||
| *.patch    -text | ||||
|  | ||||
| .gitattributes linguist-language=gitattributes | ||||
| .gitkeep       export-ignore | ||||
							
								
								
									
										1
									
								
								tests/syntax-tests/source/Git Config/LICENSE.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tests/syntax-tests/source/Git Config/LICENSE.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| The `test.gitconfig` file has been added from https://github.com/sharkdp/bat/pull/1336#issuecomment-715905807. Its "free to use". | ||||
							
								
								
									
										107
									
								
								tests/syntax-tests/source/Git Config/text.gitconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								tests/syntax-tests/source/Git Config/text.gitconfig
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | ||||
| [alias] | ||||
| 	br = branch | ||||
| 	branch = branch -a | ||||
| 	c = clone --recursive | ||||
| 	ci = commit | ||||
| 	cl = clone | ||||
| 	co = checkout | ||||
| 	contributors = shortlog --summary --numbered | ||||
| 	lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' | ||||
| 	remote = remote -v | ||||
| 	st = status | ||||
| 	tag = tag -l | ||||
| [apply] | ||||
| 	whitespace = fix | ||||
| [color] | ||||
| 	ui = true | ||||
| [color "branch"] | ||||
| 	current = yellow | ||||
| 	local = yellow | ||||
| 	remote = green | ||||
| [color "diff"] | ||||
| 	commit = yellow bold | ||||
| 	frag = magenta bold | ||||
| 	meta = yellow | ||||
| 	new = green bold | ||||
| 	old = red bold | ||||
| 	whitespace = red reverse | ||||
| [color "diff-highlight"] | ||||
| 	newHighlight = green bold 22 | ||||
| 	newNormal = green bold | ||||
| 	oldHighlight = red bold 52 | ||||
| 	oldNormal = red bold | ||||
| [color "status"] | ||||
| 	added = green | ||||
| 	changed = yellow | ||||
| 	untracked = cyan | ||||
| [commit] | ||||
| 	gpgsign = true | ||||
| [core] | ||||
| 	editor = /usr/bin/vim | ||||
| 	# global exclude | ||||
| 	excludesfile = /home/frank/.config/git/ignore | ||||
| 	pager = delta | ||||
| 	; broken on old machines | ||||
| 	untrackedCache = true | ||||
| [credential] | ||||
| 	helper = store | ||||
| [delta] | ||||
| 	features = line-numbers decorations | ||||
| 	max-line-length = 1024 | ||||
| 	whitespace-error-style = 22 reverse | ||||
| [delta "decorations"] | ||||
| 	commit-decoration-style = bold yellow box ul | ||||
| 	file-decoration-style = none | ||||
| 	file-style = bold yellow | ||||
| 	syntax-theme = gruvbox | ||||
| [diff] | ||||
| 	submodule = diff | ||||
| 	algorithm = histogram | ||||
| 	renames = copies | ||||
| [difftool] | ||||
| 	prompt = false | ||||
| [difftool "wrapper"] | ||||
| 	binary = true | ||||
| 	cmd = git-difftool-wrapper \"$LOCAL\" \"$REMOTE\" | ||||
| [diff "pdfconv"] | ||||
| 	textconv = pdftohtml -stdout | ||||
| [fetch] | ||||
| 	negotiationAlgorithm = skipping | ||||
| 	parallel = 0 | ||||
| [help] | ||||
| 	autocorrect = 1 | ||||
| [index] | ||||
| 	version = 4 | ||||
| [interactive] | ||||
| 	diffFilter = delta --color-only | ||||
| [merge] | ||||
| 	log = true | ||||
| [protocol] | ||||
| 	version = 2 | ||||
| [pull] | ||||
| 	rebase = true | ||||
| [push] | ||||
| 	default = current | ||||
| 	recurseSubmodules = on-demand | ||||
| [rebase] | ||||
| 	autoStash = true | ||||
| [rerere] | ||||
| 	autoUpdate = true | ||||
| 	enabled = true | ||||
| [sequence] | ||||
| 	editor = interactive-rebase-tool | ||||
| [submodule] | ||||
| 	fetchJobs = 0 | ||||
| [tag] | ||||
| 	gpgSign = true | ||||
| 	sort = -version:refname | ||||
| [url "git@gist.github.com:"] | ||||
| 	insteadOf = gist: | ||||
| 	pushInsteadOf = https://gist.github.com/ | ||||
| [url "git@github.com:"] | ||||
| 	insteadOf = gh: | ||||
| 	pushInsteadOf = https://github.com/ | ||||
| [user] | ||||
| 	email = f.nord@example.com | ||||
| 	name = Frank Nord | ||||
| 	signingkey = AAAAAAAAAAAAAAAA | ||||
							
								
								
									
										22
									
								
								tests/syntax-tests/source/Graphviz DOT/LICENSE.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/syntax-tests/source/Graphviz DOT/LICENSE.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| The files `test_digraph.dot` and `test_graph.dot` are modified versions the files from https://github.com/scriptum/graphviz-examples/tree/a7762875efa32f90f6f1a37d866b2c26d362202a under the following license: | ||||
|  | ||||
| The MIT License (MIT) | ||||
|  | ||||
| Copyright (c) 2014 Pavel Roschin | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy of | ||||
| this software and associated documentation files (the "Software"), to deal in | ||||
| the Software without restriction, including without limitation the rights to | ||||
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||||
| the Software, and to permit persons to whom the Software is furnished to do so, | ||||
| subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in all | ||||
| copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||||
| FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||||
| COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||||
| IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||||
| CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
							
								
								
									
										41
									
								
								tests/syntax-tests/source/Graphviz DOT/test_digraph.dot
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								tests/syntax-tests/source/Graphviz DOT/test_digraph.dot
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| digraph { | ||||
| 	label = <Label <font color='red'><b>formating</b></font>,<br/> test <font point-size='20'>is</font> done<br/> here <i>now.</i>>; | ||||
|  | ||||
| 	node [shape=box] | ||||
| 	rankdir=LR | ||||
| 	margin=0.1 | ||||
| 	a->b | ||||
|  | ||||
| 	// http://www.graphviz.org/doc/info/colors.html | ||||
| 	// note: style=filled! | ||||
| 	node [shape=box colorscheme=paired12 style=filled] | ||||
| 	margin=0.1 | ||||
| 	a2[fillcolor=1] | ||||
| 	b2[fillcolor=3] | ||||
| 	a2->b2->x2 | ||||
|  | ||||
| 	// http://www.graphviz.org/doc/info/colors.html | ||||
| 	// note: style=filled! | ||||
| 	node [shape=box colorscheme=paired12 style=filled] | ||||
| 	rankdir=LR | ||||
| 	margin=0.1 | ||||
| 	c1[fillcolor=1] | ||||
| 	c2[fillcolor=2] | ||||
| 	c3[fillcolor=3] | ||||
| 	c4[fillcolor=4] | ||||
| 	c5[fillcolor=5] | ||||
| 	c6[fillcolor=6] | ||||
| 	c7[fillcolor=7] | ||||
| 	c8[fillcolor=8] | ||||
| 	c9[fillcolor=9] | ||||
| 	c10[fillcolor=10] | ||||
| 	c11[fillcolor=11] | ||||
| 	c12[fillcolor=12] | ||||
| 	c->{c1 c3 c5 c7 c9 c11} | ||||
| 	c1->c2 | ||||
| 	c3->c4 | ||||
| 	c5->c6 | ||||
| 	c7->c8 | ||||
| 	c9->c10 | ||||
| 	c11->c12 | ||||
| } | ||||
							
								
								
									
										3
									
								
								tests/syntax-tests/source/Graphviz DOT/test_graph.dot
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								tests/syntax-tests/source/Graphviz DOT/test_graph.dot
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| graph { | ||||
| 	a--b | ||||
| } | ||||
							
								
								
									
										27
									
								
								tests/syntax-tests/source/MATLAB/LICENSE.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								tests/syntax-tests/source/MATLAB/LICENSE.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| The `test.matlab` file is a modified version of https://github.com/pygments/pygments/blob/3e1b79c82d2df318f63f24984d875fd2a3400808/tests/test_matlab.py under the following license:  | ||||
|  | ||||
| Copyright (c) 2006-2020 by the respective authors (see AUTHORS file). | ||||
| All rights reserved. | ||||
|  | ||||
| Redistribution and use in source and binary forms, with or without | ||||
| modification, are permitted provided that the following conditions are | ||||
| met: | ||||
|  | ||||
| * Redistributions of source code must retain the above copyright | ||||
|   notice, this list of conditions and the following disclaimer. | ||||
|  | ||||
| * Redistributions in binary form must reproduce the above copyright | ||||
|   notice, this list of conditions and the following disclaimer in the | ||||
|   documentation and/or other materials provided with the distribution. | ||||
|  | ||||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||||
| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||||
| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||||
| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||||
| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||||
| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||||
| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
							
								
								
									
										34
									
								
								tests/syntax-tests/source/MATLAB/test.matlab
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								tests/syntax-tests/source/MATLAB/test.matlab
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| function zz=sample(aa) | ||||
| %%%%%%%%%%%%%%%%%% | ||||
| % some comments | ||||
| %%%%%%%%%%%%%%%%%% | ||||
|  | ||||
| x = 'a string';    % some 'ticks' in a comment | ||||
| y = 'a string with ''interal'' quotes'; | ||||
|  | ||||
| for i=1:20 | ||||
|   disp(i); | ||||
| end | ||||
|  | ||||
| a = rand(30); | ||||
| b = rand(30); | ||||
|  | ||||
| c = a .* b ./ a \ ... comment at end of line and continuation | ||||
|     (b .* a + b - a); | ||||
|  | ||||
| c = a' * b';  % note: these ticks are for transpose, not quotes. | ||||
|  | ||||
| disp('a comment symbol, %, in a string'); | ||||
|  | ||||
| !echo abc % this isn't a comment - it's passed to system command | ||||
|  | ||||
| function y=myfunc(x) | ||||
| y = exp(x); | ||||
|  | ||||
| %{ | ||||
|   a block comment | ||||
| %} | ||||
|  | ||||
| function no_arg_func | ||||
| fprintf('%s\n', 'function with no args') | ||||
| end | ||||
							
								
								
									
										
											BIN
										
									
								
								tests/syntax-tests/source/PowerShell/test.ps1
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/syntax-tests/source/PowerShell/test.ps1
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										219
									
								
								tests/syntax-tests/source/QML/BatSyntaxTest.qml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										219
									
								
								tests/syntax-tests/source/QML/BatSyntaxTest.qml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,219 @@ | ||||
| import QtQuick 2.0 | ||||
| import "../components" | ||||
|  | ||||
| Page { | ||||
|     id: page | ||||
|  | ||||
|     // properties | ||||
|  | ||||
|     property bool startup: true | ||||
|     readonly property var var1: null | ||||
|     readonly property QtObject var2: null | ||||
|  | ||||
|     allowedOrientations: Orientation.All | ||||
|  | ||||
|     /* components */ | ||||
|  | ||||
|     DBusServiceWatcher { | ||||
|         id: dbusService | ||||
|         service: "org.bat.service" | ||||
|  | ||||
|         onRegisteredChanged: { | ||||
|             if (dbusService.registered) { | ||||
|                 announcedNameField.text = daemon.announcedName() | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     Component.onCompleted: { | ||||
|         console.debug("completed") | ||||
|     } | ||||
|  | ||||
|     Flickable { | ||||
|         anchors.fill: parent | ||||
|         contentHeight: column.height | ||||
|         visible: dbusService.registered | ||||
|  | ||||
|         ViewPlaceholder { | ||||
|             enabled: !startup | ||||
|                      && trustedDevices.count == 0 | ||||
|                      && nearDevices.count == 0 | ||||
|             text: qsTr("Install Bat.") | ||||
|         } | ||||
|  | ||||
|         Column { | ||||
|             id: column | ||||
|  | ||||
|             width: page.width | ||||
|             spacing: Theme.paddingLarge | ||||
|  | ||||
|             PageHeader { | ||||
|                 title: qsTr("Syntax Test") | ||||
|             } | ||||
|  | ||||
|             TextField { | ||||
|                 id: announcedNameField | ||||
|                 width: parent.width | ||||
|                 label: qsTr("Device Name") | ||||
|                 text: dbusService.registered ? daemon.announcedName() : "" | ||||
|  | ||||
|                 onActiveFocusChanged: { | ||||
|                     if (activeFocus) | ||||
|                         return | ||||
|  | ||||
|                     if (text.length === 0) { | ||||
|                         text = daemon.announcedName() | ||||
|                     } else { | ||||
|                         daemon.setAnnouncedName(text) | ||||
|                         placeholderText = text | ||||
|                     } | ||||
|                 } | ||||
|  | ||||
|                 EnterKey.onClicked: announcedNameField.focus = false | ||||
|                 EnterKey.iconSource: "image://theme/icon-m-enter-close" | ||||
|             } | ||||
|  | ||||
|  | ||||
|             Component { | ||||
|                 id: deviceDelegate | ||||
|  | ||||
|                 ListItem { | ||||
|                     id: listItem | ||||
|  | ||||
|                     property bool showStatus: deviceStatusLabel.text.length | ||||
|  | ||||
|                     width: page.width | ||||
|                     height: Theme.itemSizeMedium | ||||
|  | ||||
|                     Image { | ||||
|                         id: icon | ||||
|                         source: iconUrl | ||||
|  | ||||
|                         x: Theme.horizontalPageMargin | ||||
|                         anchors.verticalCenter: parent.verticalCenter | ||||
|                         sourceSize.width: Theme.iconSizeMedium | ||||
|                         sourceSize.height: Theme.iconSizeMedium | ||||
|                     } | ||||
|  | ||||
|                     Label { | ||||
|                         id: deviceNameLabel | ||||
|                         anchors { | ||||
|                             left: icon.right | ||||
|                             leftMargin: Theme.paddingLarge | ||||
|                             right: parent.right | ||||
|                             rightMargin: Theme.horizontalPageMargin | ||||
|                         } | ||||
|                         y: listItem.contentHeight / 2 - implicitHeight / 2 | ||||
|                            - showStatus * (deviceStatusLabel.implicitHeight / 2) | ||||
|  | ||||
|                         text: name | ||||
|                         color: listItem.highlighted | ||||
|                                ? Theme.highlightColor | ||||
|                                : Theme.primaryColor | ||||
|                         truncationMode: TruncationMode.Fade | ||||
|                         textFormat: Text.PlainText | ||||
|  | ||||
|                         Behavior on y { NumberAnimation {} } | ||||
|                     } | ||||
|  | ||||
|                     Label { | ||||
|                         id: deviceStatusLabel | ||||
|                         anchors { | ||||
|                             left: deviceNameLabel.left | ||||
|                             top: deviceNameLabel.bottom | ||||
|                             right: parent.right | ||||
|                             rightMargin: Theme.horizontalPageMargin | ||||
|                         } | ||||
|  | ||||
|                         text: (trusted && reachable) | ||||
|                               ? qsTr("Connected") | ||||
|                               : (hasPairingRequests || waitsForPairing | ||||
|                                  ? qsTr("Pending pairing request ...") : "") | ||||
|                         color: listItem.highlighted | ||||
|                                ? Theme.secondaryHighlightColor | ||||
|                                : Theme.secondaryColor | ||||
|                         truncationMode: TruncationMode.Fade | ||||
|                         font.pixelSize: Theme.fontSizeExtraSmall | ||||
|                         opacity: showStatus ? 1.0 : 0.0 | ||||
|                         width: parent.width | ||||
|                         textFormat: Text.PlainText | ||||
|  | ||||
|                         Behavior on opacity { FadeAnimation {} } | ||||
|                     } | ||||
|  | ||||
|                     onClicked: { | ||||
|                         pageStack.push( | ||||
|                             Qt.resolvedUrl("DevicePage.qml"), | ||||
|                             { deviceId: id }) | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             DeviceListModel { | ||||
|                 id: devicelistModel | ||||
|             } | ||||
|  | ||||
|             ColumnView { | ||||
|                 id: devicesView | ||||
|                 width: page.width | ||||
|                 itemHeight: Theme.itemSizeMedium | ||||
|  | ||||
|  | ||||
|                 model: trustedDevicesModel | ||||
|                 delegate: deviceDelegate | ||||
|                 visible: devicesView.count > 0 | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         PullDownMenu { | ||||
| //            MenuItem { | ||||
| //                text: qsTr("About ...") | ||||
| //                onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml")) | ||||
| //            } | ||||
|  | ||||
|             MenuItem { | ||||
|                 text: qsTr("Settings ...") | ||||
|                 onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml")) | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         VerticalScrollDecorator {} | ||||
|     } | ||||
|  | ||||
|     /* | ||||
|     Connections { | ||||
|         target: ui | ||||
|         onOpeningDevicePage: openDevicePage(deviceId) | ||||
|     }*/ | ||||
|  | ||||
|     Timer { | ||||
|         interval: 1000 | ||||
|         running: true | ||||
|         repeat: false | ||||
|         onTriggered: startup = false | ||||
|     } | ||||
|  | ||||
|     function openDevicePage(deviceId) { | ||||
|         if (typeof pageStack === "undefined") | ||||
|             return; | ||||
|  | ||||
|         console.log("opening device " + deviceId) | ||||
|  | ||||
|         window.activate() | ||||
|  | ||||
|         var devicePage = pageStack.find(function(page) { | ||||
|             return page.objectName === "DevicePage" | ||||
|         }) | ||||
|         if (devicePage !== null && devicePage.deviceId === deviceId) { | ||||
|             pageStack.pop(devicePage) | ||||
|             ui.showMainWindow() | ||||
|             return | ||||
|         } | ||||
|  | ||||
|         pageStack.pop(page, PageStackAction.Immediate) | ||||
|         pageStack.push( | ||||
|             Qt.resolvedUrl("DevicePage.qml"), | ||||
|             { deviceId: deviceId }, | ||||
|             PageStackAction.Immediate) | ||||
|     } | ||||
| } | ||||
							
								
								
									
										57
									
								
								tests/syntax-tests/source/SLS/test.sls
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								tests/syntax-tests/source/SLS/test.sls
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| required_packages: | ||||
|   pkg.installed: | ||||
|     - pkgs: | ||||
|       - git | ||||
|       - perl | ||||
|       - fortune | ||||
|  | ||||
| cowsay_source: | ||||
|   git.latest: | ||||
|     - name: https://github.com/jasonm23/cowsay.git | ||||
|     - target: /root/cowsay | ||||
|  | ||||
| run_installer: | ||||
|   cmd.run: | ||||
|     - name: ./install.sh /usr/local | ||||
|     - cwd: /root/cowsay | ||||
|     - onchanges: | ||||
|       - git: cowsay_source | ||||
|  | ||||
| {% set cowfiles = salt.cmd.run('cowsay -l').split('\n')[1:] %} | ||||
| {% set ascii_arts = cowfiles | join(' ') %} | ||||
|  | ||||
| {% for ascii_art in ascii_arts.split(' ') %} | ||||
| run_cowsay_{{ ascii_art }}: # name must be unique | ||||
|   cmd.run: | ||||
|     {% if ascii_art is in ['head-in', 'sodomized', 'telebears'] %} | ||||
|     - name: echo cowsay -f {{ ascii_art }} should not be used | ||||
|     {% else %} | ||||
|     - name: fortune | cowsay -f {{ ascii_art }} | ||||
|     {% endif %} | ||||
| {% endfor %} | ||||
|  | ||||
| echo_pillar_demo_1: | ||||
|   cmd.run: | ||||
|     - name: "echo {{ pillar.demo_text | default('pillar not defined') }}" | ||||
|  | ||||
| echo_pillar_demo_2: | ||||
|   cmd.run: | ||||
|     - name: "echo {{ pillar.demo.text | default('pillar not defined') }}" | ||||
|  | ||||
| # Comment | ||||
| {% set rand = salt['random.get_str'](20) %} | ||||
| {% set IP_Address = pillar['IP_Address'] %} | ||||
|  | ||||
| wait: | ||||
|   cmd.run: | ||||
|     - name: sleep 210  # another comment | ||||
|  | ||||
| create_roster_file: | ||||
|   file.managed: | ||||
|     - name: /tmp/salt-roster-{{ rand }} | ||||
|     - contents: | ||||
|       - 'switch:' | ||||
|       - '  host: {{ IP_Address }}' | ||||
|       - "  user: test" | ||||
|       - "  passwd: {{ passwd }}" | ||||
|  | ||||
							
								
								
									
										57
									
								
								tests/syntax-tests/source/Svelte/App.svelte
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								tests/syntax-tests/source/Svelte/App.svelte
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| <script> | ||||
| 	import { onMount } from 'svelte'; | ||||
| 	import List from './List.svelte'; | ||||
| 	import Item from './Item.svelte'; | ||||
|  | ||||
| 	let item; | ||||
| 	let page; | ||||
|  | ||||
| 	async function hashchange() { | ||||
| 		// the poor man's router! | ||||
| 		const path = window.location.hash.slice(1); | ||||
|  | ||||
| 		if (path.startsWith('/item')) { | ||||
| 			const id = path.slice(6); | ||||
| 			item = await fetch(`https://node-hnapi.herokuapp.com/item/${id}`).then(r => r.json()); | ||||
|  | ||||
| 			window.scrollTo(0,0); | ||||
| 		} else if (path.startsWith('/top')) { | ||||
| 			page = +path.slice(5); | ||||
| 			item = null; | ||||
| 		} else { | ||||
| 			window.location.hash = '/top/1'; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	onMount(hashchange); | ||||
| </script> | ||||
|  | ||||
| <style> | ||||
| 	main { | ||||
| 		position: relative; | ||||
| 		max-width: 800px; | ||||
| 		margin: 0 auto; | ||||
| 		min-height: 101vh; | ||||
| 		padding: 1em; | ||||
| 	} | ||||
|  | ||||
| 	main :global(.meta) { | ||||
| 		color: #999; | ||||
| 		font-size: 12px; | ||||
| 		margin: 0 0 1em 0; | ||||
| 	} | ||||
|  | ||||
| 	main :global(a) { | ||||
| 		color: rgb(0,0,150); | ||||
| 	} | ||||
| </style> | ||||
|  | ||||
| <svelte:window on:hashchange={hashchange}/> | ||||
|  | ||||
| <main> | ||||
| 	{#if item} | ||||
| 		<Item {item} returnTo="#/top/{page}"/> | ||||
| 	{:else if page} | ||||
| 		<List {page}/> | ||||
| 	{/if} | ||||
| </main> | ||||
							
								
								
									
										14
									
								
								tests/syntax-tests/source/Svelte/LICENSE
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/syntax-tests/source/Svelte/LICENSE
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| The `App.svelte` file has been added from: | ||||
|  | ||||
| https://github.com/sveltejs/svelte/blob/master/site/content/examples/21-miscellaneous/01-hacker-news/App.svelte | ||||
|  | ||||
| Under the following license: | ||||
|  | ||||
|  | ||||
| Copyright (c) 2016-20 [these people](https://github.com/sveltejs/svelte/graphs/contributors) | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
							
								
								
									
										55
									
								
								tests/syntax-tests/source/Vue/example.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								tests/syntax-tests/source/Vue/example.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | ||||
| <template> | ||||
|   <div id="app" class="container-fluid"> | ||||
|     <AppHeader></AppHeader> | ||||
|     <transition name="page" mode="out-in" v-if="!isLoading"> | ||||
|       <router-view></router-view> | ||||
|     </transition> | ||||
|     <AppLoadingIndicator></AppLoadingIndicator> | ||||
|   </div> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import AppHeader from "@/components/AppHeader"; | ||||
| import AppLoadingIndicator from "@/components/AppLoadingIndicator"; | ||||
| import { mapGetters } from "vuex"; | ||||
|  | ||||
| export default { | ||||
|   name: "App", | ||||
|   components: { | ||||
|     AppHeader, | ||||
|     AppLoadingIndicator, | ||||
|   }, | ||||
|   beforeCreate() { | ||||
|     this.$store.dispatch("fetchData"); | ||||
|   }, | ||||
|   data: { | ||||
|     message: "Hello!" | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapGetters({ | ||||
|       isLoading: "isLoading", | ||||
|     }), | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|  | ||||
| <style> | ||||
| body { | ||||
|   background-color: rgba(72, 163, 184, 0.05) !important; | ||||
| } | ||||
|  | ||||
| .page-enter-active, | ||||
| .page-leave-active { | ||||
|   transition: opacity 0.2s; | ||||
| } | ||||
|  | ||||
| .page-enter, | ||||
| .page-leave-active { | ||||
|   opacity: 0; | ||||
| } | ||||
|  | ||||
| .page-enter:hover { | ||||
|     opacity: 1; | ||||
| } | ||||
|  | ||||
| </style> | ||||
							
								
								
									
										140
									
								
								tests/syntax-tests/source/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								tests/syntax-tests/source/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,140 @@ | ||||
| #user  nobody; | ||||
| worker_processes  1; | ||||
| #pid        logs/nginx.pid; | ||||
|  | ||||
| load_module "/usr/local/libexec/nginx/ngx_http_xslt_filter_module.so"; | ||||
| load_module "/usr/local/libexec/nginx/ngx_rtmp_module.so"; | ||||
|  | ||||
| events { | ||||
|     worker_connections  1024; | ||||
| } | ||||
|  | ||||
| http { | ||||
|     include       mime.types; | ||||
|     default_type  application/octet-stream; | ||||
|     sendfile        on; | ||||
|     keepalive_timeout  65; | ||||
|     gzip  on; | ||||
|     gzip_disable "msie6"; | ||||
|  | ||||
|     include /usr/local/etc/nginx/sites.d/*; | ||||
| } | ||||
|  | ||||
| rtmp { | ||||
|   server { | ||||
|     listen 1935; | ||||
|     max_message 10M; | ||||
|  | ||||
|     application wnob { | ||||
|       live on; | ||||
|       record off; | ||||
|     } | ||||
|  | ||||
|     application strim { | ||||
|       live on; | ||||
|       hls on; | ||||
|  | ||||
|       hls_path /usr/local/www/hls/; | ||||
|  | ||||
|       hls_variant _low BANDWIDTH=250000; | ||||
|       hls_variant _mid BANDWIDTH=500000; | ||||
|       hls_variant _high BANDWIDTH=1000000; | ||||
|       hls_variant _hd720 BANDWIDTH=1500000; | ||||
|       hls_variant _src BANDWIDTH=2000000; | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
| server { | ||||
|   listen 443 ssl; | ||||
|   server_name host.example.com | ||||
|   root /usr/local/www/host.example.com/; | ||||
|   error_page 404 /404.html; | ||||
|  | ||||
|   index index.html; | ||||
|   autoindex on; | ||||
|   autoindex_localtime off; | ||||
|   autoindex_format xml; | ||||
|  | ||||
|   location / { | ||||
|     xslt_stylesheet /usr/local/www/host.example.com/index.xslt; | ||||
|   } | ||||
|  | ||||
|   location ~ /\..* { | ||||
|     return 404; | ||||
|   } | ||||
|  | ||||
|   location ~ /.+/ { | ||||
|     xslt_stylesheet /usr/local/www/host.example.com/project.xslt; | ||||
|   } | ||||
|  | ||||
|   location ~ /.*\.xslt/ { | ||||
|     return 404; | ||||
|   } | ||||
|  | ||||
|   location ~ \.thumb\.png$ { | ||||
|     error_page 404 /404.thumb.png; | ||||
|   } | ||||
|     ssl_certificate /usr/local/etc/letsencrypt/live/host.example.com/fullchain.pem; # managed by Certbot | ||||
|     ssl_certificate_key /usr/local/etc/letsencrypt/live/host.example.com/privkey.pem; # managed by Certbot | ||||
|  | ||||
|   include /usr/local/etc/letsencrypt/options-ssl-nginx.conf; | ||||
|   ssl_dhparam /usr/local/etc/letsencrypt/ssl-dhparams.pem; | ||||
|  | ||||
|   add_header Strict-Transport-Security "max-age=31536000" always; | ||||
|  | ||||
| } | ||||
|  | ||||
| server { | ||||
|   listen 80; | ||||
|   server_name host.example.com; | ||||
|  | ||||
|   if ($host = host.example.com) { | ||||
|     return 301 https://$host$request_uri; | ||||
|   } | ||||
|  | ||||
|   return 404; | ||||
| } | ||||
|  | ||||
| server { | ||||
|   listen 443 ssl; | ||||
|   server_name other.example.com; | ||||
|  | ||||
|   ssl_certificate /usr/local/etc/letsencrypt/live/other.example.com/fullchain.pem; | ||||
|   ssl_certificate_key /usr/local/etc/letsencrypt/live/other.example.com/privkey.pem; | ||||
|  | ||||
|   include /usr/local/etc/letsencrypt/options-ssl-nginx.conf; | ||||
|   ssl_dhparam /usr/local/etc/letsencrypt/ssl-dhparams.pem; | ||||
|  | ||||
|   add_header Strict-Transport-Security "max-age=31536000" always; | ||||
|  | ||||
|   access_log /home/otherapp/logs/access.log; | ||||
|   error_log /home/otherapp/logs/error.log; | ||||
|  | ||||
|   client_max_body_size 5M; | ||||
|  | ||||
|   location / { | ||||
|     root /home/otherapp/app/static; | ||||
|     index man.txt; | ||||
|     try_files $uri @proxy; | ||||
|   } | ||||
|  | ||||
|   location @proxy { | ||||
|     proxy_set_header Host $http_host; | ||||
|     proxy_set_header X-Forwarded-Host $host; | ||||
|     proxy_set_header X-Real-IP $remote_addr; | ||||
|     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||
|     proxy_pass http://unix:/var/run/otherapp/sock:; | ||||
|   } | ||||
| } | ||||
|  | ||||
| server { | ||||
|   listen 80; | ||||
|   server_name other.example.com; | ||||
|  | ||||
|   if ($host = other.example.com) { | ||||
|     return 301 https://$host$request_uri; | ||||
|   } | ||||
|  | ||||
|   return 404; | ||||
| } | ||||
							
								
								
									
										15
									
								
								tests/syntax-tests/source/nix/test.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/syntax-tests/source/nix/test.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| { nixpkgs ? <nixpkgs> | ||||
| , nixpkgs' ? import nixpkgs {}}: with nixpkgs'; | ||||
|  | ||||
| # some comment | ||||
| stdenv.mkDerivation rec { | ||||
|   pname = "test"; | ||||
|   version = "0.2.3"; | ||||
|   name = "${pname}-${version}"; | ||||
|  | ||||
|   buildInputs = [ | ||||
|     gzip | ||||
|     bzip2 | ||||
|     python27 | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user