-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implement a dedicated optimized searcher for the default syntax. - Use the `aho-corasick` crate for custom syntax. - Put custom syntax behind a feature.
- Loading branch information
1 parent
69cf095
commit eead012
Showing
24 changed files
with
499 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,9 +71,13 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- uses: dtolnay/[email protected] | ||
- name: Check (no filters) | ||
- name: Check (no filters, no syntax) | ||
run: cargo check --no-default-features --features serde,unicode | ||
|
||
- uses: dtolnay/[email protected] | ||
- name: Check (no filters) | ||
run: cargo check --no-default-features --features serde,syntax,unicode | ||
|
||
- uses: dtolnay/[email protected] | ||
- name: Test | ||
run: cargo test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>{ title }</title> | ||
</head> | ||
<body> | ||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Age</th> | ||
</tr> | ||
<%- for user in users -%> | ||
<% if not user.is_disabled %> | ||
<# This is a comment #> | ||
<tr> | ||
<td>{ user.name }</td> | ||
<td>{ user.age }</td> | ||
</tr> | ||
<% endif %> | ||
<%- endfor -%> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>{ title }</title> | ||
</head> | ||
<body> | ||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Age</th> | ||
</tr> | ||
<%- for user in users -%> | ||
<% if not user.is_disabled %> | ||
<# This is a comment #> | ||
<tr> | ||
<td>{ user.name }</td> | ||
<td>{ user.age }</td> | ||
</tr> | ||
<% endif %> | ||
<%- endfor -%> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My awesome webpage!</title> | ||
</head> | ||
<body> | ||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Age</th> | ||
</tr> | ||
|
||
<tr> | ||
<td>Nancy Wheeler</td> | ||
<td>17</td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td>Steve Harrington</td> | ||
<td>18</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My awesome webpage!</title> | ||
</head> | ||
<body> | ||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Age</th> | ||
</tr> | ||
|
||
<tr> | ||
<td>Nancy Wheeler</td> | ||
<td>17</td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td>Steve Harrington</td> | ||
<td>18</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.