Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Build & Test

# Triggers on pushes or pull requests to any branch
on: [push, pull_request]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:

Expand Down
10 changes: 8 additions & 2 deletions core/Parsing.Documents.fs
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,17 @@ let mutable languages = [
lang "XML" "xsl" ".xml|.xsl"
html
lang "YAML" "" ".yaml|.yml"
// Also allow text paragraphs to be wrapped. Though wrapping the whole
// file at once will mess it up.
<| toNewDocProcessor (fun settings ->
/// Also allow text paragraphs to be wrapped. Though wrapping the whole
/// file at once will mess it up.
let comments = oldLine "#{1,3}" settings
takeUntil comments (oldPlainText settings) |> repeatToEnd)
lang "Zig" "" ".zig|.zon"
( oldSourceCode
[ customLine DocComments.javadoc "//[/!]"
cLine
]
)
]

/// Creates a custom language parser, if the given CustomMarkers are valid. Also
Expand Down
2 changes: 1 addition & 1 deletion core/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ type Results = {passes:int; failures:int; errors:int}

[<EntryPoint>]
let main argv =
let norm (s: String) = s.ToLower().Replace('\\', '/')
let norm (s: String) = s.Replace('\\', '/')
let argv = Array.map norm argv
let inArgv (f: string) = argv |> Array.exists (fun a -> f.EndsWith (a))
let filesToTest =
Expand Down
17 changes: 17 additions & 0 deletions docs/specs/content-types/zig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
> language: "zig"

Zig uses comment formats that might be familiar if you use Doxygen (C/C++) but there are
no multi-line block comments.

// a b c -> // a b ¦
// d ¦ // c d ¦

Doc comments:

/// a b c -> /// a b ¦
/// d ¦ /// c d ¦

Top-level doc comments:

//! a b c -> //! a b ¦
//! d ¦ //! c d ¦
Loading
Loading