Skip to content

Commit

Permalink
more .gitattributes to suppres generated/vendored files from stats
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 14, 2024
1 parent 13509f6 commit af12604
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
9 changes: 7 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# on our repo page.
# Refer: https://github.com/github/linguist/blob/master/docs/overrides.md

*.html linguist-generated
**.html linguist-generated
default-*.js linguist-generated
default-*.css linguist-generated
manifest.json linguist-generated
fastn-core/fbt-tests/** linguist-generated
manifest.json linguist-generated
fastn.com/.packages/** linguist-vendored
ftd/t/executor/*.json linguist-generated
ftd/t/interpreter/*.json linguist-generated
ftd/t/node/*.json linguist-generated
5 changes: 5 additions & 0 deletions v0.5/fastn-section/src/parser/body.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub fn body(
_scanner: &mut fastn_section::Scanner<fastn_section::Document>,
) -> Option<fastn_section::HeaderValue> {
None // TODO
}
5 changes: 5 additions & 0 deletions v0.5/fastn-section/src/parser/headers.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub fn headers(
_scanner: &mut fastn_section::Scanner<fastn_section::Document>,
) -> Vec<fastn_section::Header> {
vec![] // TODO
}
4 changes: 4 additions & 0 deletions v0.5/fastn-section/src/parser/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
mod body;
mod header_value;
mod headers;
mod identifier;
mod kind;
mod kinded_name;
Expand All @@ -9,7 +11,9 @@ mod section;
mod section_init;
mod visibility;

pub use body::body;
pub use header_value::header_value;
pub use headers::headers;
pub use identifier::identifier;
pub use kind::kind;
pub use kinded_name::kinded_name;
Expand Down
13 changes: 6 additions & 7 deletions v0.5/fastn-section/src/parser/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ pub fn section(
scanner.skip_spaces();
let caption = fastn_section::parser::header_value(scanner);

// TODO: implement headers, body
Some(fastn_section::Section {
init: section_init,
caption,
headers: vec![],
body: None,
children: vec![],
function_marker: None,
is_commented: false,
has_end: false,
headers: fastn_section::parser::headers(scanner),
body: fastn_section::parser::body(scanner),
children: vec![], // children is populated by the wiggin::ender.
function_marker: None, // TODO
is_commented: false, // TODO
has_end: false, // has_end is populated by the wiggin::ender.
})
}

Expand Down

0 comments on commit af12604

Please sign in to comment.