Skip to content

Commit

Permalink
Merge a4e7c58 into b96e0b0
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Dec 8, 2019
2 parents b96e0b0 + a4e7c58 commit 272cffd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
@@ -1,10 +1,15 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
codecov: true
coveralls: true
os:
- linux
- osx
- windows
julia:
- 0.6
- # 1.0
- 1.3
- nightly
notifications:
email: false
Expand All @@ -13,16 +18,16 @@ git:

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - julia: nightly
matrix:
allow_failures:
- julia: nightly

# uncomment the following lines to override the default test script
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'p="https://github.com/JuliaString"; s=".jl.git"; l="_Entities"; Pkg.clone("$p/StrTables$s"); t=("LaTeX","Emoji","HTML","Unicode"); for n in t; Pkg.clone("$p/$n$l$s"); end; Pkg.clone("$p/Format$s"); Pkg.clone(pwd()); Pkg.add("LightXML"); Pkg.add("JSON"); for n in t; Pkg.build("$n$l"); end; Pkg.test("StringLiterals"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("StringLiterals")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
#- julia -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; cd(Pkg.dir("StringLiterals")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("StringLiterals")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
#- julia -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; cd(Pkg.dir("StringLiterals")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
6 changes: 6 additions & 0 deletions src/StringLiterals.jl
Expand Up @@ -34,6 +34,12 @@ else
outhex(c, p=1) = string(UInt32(c), base=16, pad=p)
end

@static if VERSION >= v"1.0.0"
const next = iterate
start(iter) = 1
done(iter, state) = iterate(iter, state) === nothing
end

"""
String macro with more Swift-like syntax, plus support for emojis and LaTeX names
"""
Expand Down

0 comments on commit 272cffd

Please sign in to comment.