Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

@function not work correctly #2889

Closed
yutent opened this issue Apr 12, 2020 · 2 comments
Closed

@function not work correctly #2889

yutent opened this issue Apr 12, 2020 · 2 comments

Comments

@yutent
Copy link

yutent commented Apr 12, 2020

scss source:

@function px($n: 1){
  @return ($n / 75) + rem
};

.foo { --size: px(75); margin: px(75); }

the result:

.foo { --size: px(75); margin: 1rem; }

expectation:

.foo { --size:  1rem; margin: 1rem; }
@yutent yutent changed the title @function not work @function not work correctly Apr 12, 2020
@nschonni
Copy link
Contributor

CSS variables won't compile unless you explicitly use interpolation https://sass-lang.com/documentation/interpolation

@yutent
Copy link
Author

yutent commented Apr 13, 2020

Thank you for your reply.

nschonni pushed a commit to nschonni/node-sass that referenced this issue Apr 22, 2020
* Squashed 'src/libsass/' changes from 39e3087..e1c16e0

e1c16e0 Merge pull request sass#3027 from mgreter/bugfix/misc-segfaults
0b721e0 Fix out of boundary vector access
994695c Fix out of boundary vector access
d2390e5 Fix nullptr access on interpolated parents
081bbbf Merge pull request sass#3021 from mgreter/bugfix/3018-nested-sel-nl-ws
a089875 Merge pull request sass#3022 from mgreter/bugfix/3019-extend-error-src-lifetime
ed91ca4 Extend `error_src` lifetime on c-api context
5c267e1 Preserve indentation for media rules in nested mode
0790fc8 Fix indentation for parents with newlines in nested mode
f7567ea Merge pull request sass#3015 from mgreter/bugfix/3014-mem-leak-in-permutate
0537dd2 Fix possible memory leak in permutation function
e820c83 Merge pull request sass#3007 from mgreter/bugfix/3006-extend-with-parent
e116b49 Merge pull request sass#3002 from mgreter/bugfix/2998-extend-compound-warning
fdf63e4 Fix trim loop condition and outer continue
1ec3876 Fix extend issue being stuck in endless loop
16365c1 Fix compound extend warning
4da7c4b Merge pull request sass#2997 from mgreter/bugfix/2884-attribute-selector-equality
04a234a Merge pull request sass#2990 from jquense/parse-unknown-psuedos
23cabbe Merge pull request sass#2996 from mgreter/bugfix/2980-fix-unary-expr-eval
408a883 Merge pull request sass#2995 from mgreter/bugfix/2994-endless-extend-loop
deeebbf Fix attribute selector equality (include modifier)
3d806e6 Fix evaluation of unary expressions in loops
c3fdce9 Fix selector `isInvisible` logic
35b3293 Assorted typo fixes. (sass#2986)
b894c52 README.md: Document that GCC 4.7+ is required
9932747 Compressed style: Fix space removal after ancestor
0488cee util_string cleanup: Remove const-ref arg rtrim
4f22bee unrecognized psuedos with arguments parse as declaration-values
8e22cd4 math.h is deprecated
fbbadbf revert concurrent compilation (sass#2977)
4e89f57 Document the need to use `sass_free_memory`
e340781 Improve doc markdown syntax formatting
931d381 Merge pull request sass#2968 from mgreter/docs/data-context
62187f0 Improve data context documentation
eb54de6 Merge pull request sass#2949 from nschonni/fix--non-integers-passed-to-str-slice
2263d9b Merge pull request sass#2951 from nschonni/fix--str-slice-can't-start-at-0
6ea4cb2 Merge pull request sass#2950 from nschonni/fix--throw-on-weitht-passed-to-CSS3-invert
996dbb3 Merge pull request sass#2945 from nschonni/fix--Error-on-non-int-str-insert-index
2b8a17a Merge pull request sass#2953 from mgreter/bugfix/mac-osx-build
e913264 Fix bug in scale-color with positive saturation (sass#2954)
50feccb Use dylib instead of so on Mac OSX
58d1066 Merge pull request sass#2946 from nschonni/fix--Update-comparable-signiture
1587a2a Merge pull request sass#2948 from nschonni/fix--Update-"call"-parameter-to-$function
1e23b4d fix: Error on non-int str-insert index
5ac3b7d fix: Update comparable signiture
44e7a9e fix: non-integers passed to str-slice
d972c50 fix: throw on weitht passed to CSS3 invert()
1c2ae95 fix: str-slice can't start at 0
d5d30da fix: Update "call" parameter to $function
ac338df Merge pull request sass#2933 from nschonni/fix--Error-on-empty-min/max-call
2c22d56 Merge pull request sass#2929 from nschonni/fix-feature-exists-param-name
c81a8e5 Merge pull request sass#2934 from nschonni/fix(mix)--Align-argurment-names-to-color1/color2
0f3d6ad Merge pull request sass#2939 from nschonni/add-interactive-test
7442be5 Merge pull request sass#2930 from nschonni/chore--Ignore-MS-IDE-caches
acfcd6f Merge pull request #2935 from nschonni/fix--ExitorConfig-glob-for-Makefiles
34490a5 chore: Add test_interactive build target
d6606e3 fix: ExitorConfig glob for Makefiles
948f126 fix: Error on empty min/max call
3844174 fix(mix): Align argurment names to color1/color2
031d358 chore: Ignore MS IDE caches
6d23160 fix(feature-exists): Parameter name to "feature"
c713140 Use `Util::ascii_*` in prelexer
03bf13c Add and use our own ASCII routines
9616e95 Minor fixes / enhancements
773bba7 Merge pull request sass#2908 from mgreter/feature/selectors-backport
7c40b00 Add comments to debug hanging appveyor builds
3d61646 Disable unused sass 4.0 code-paths
2c4b0c3 Fix and improve last extend refactoring bits
3e8e941 Restore old compound extend behavior (with deprecation)
f964dcd Refactor selectors and extend (back-port from dart-sass)
4d229af Merge pull request sass#2909 from glebm/ptr-comparison
0bab610 VS2013 noexcept workaround
dfe23ac Add comparison operators for SharedImpl, fix bugs
0328de2 Read files using <cstdio> for better portability
a46a281 Remove abspath from native Makefile
1edc51c Makefile: Fix STATIC_LIBSTDCPP support
5ebc5d5 [build] add support of Visual Studio 2017 and 2019 to the Visual C++ project file (sass#2891)
04f59a5 Remove the link to `ast_factory.hpp` from Visual C++ project files
21d2d16 [build] enable concurrent compilation (sass#2888)
0d08be9 travis: add gcc-8 to CI (sass#2889)
8d220b7 Delete extconf.rb
c51f442 Forbid empty custom property values
f2db048 Make `parse_css_variable_value` non-recursive
e53c7f8 Fix `inspect` for quoted strings
34ba25e Makefile: Mark test* targets as .PHONY
5ae2e81 Disallow non-string argument to `quote`
9740de6 Merge pull request sass#2866 from mgreter/ntqa/del-obsolete-unit-tests
bfa4472 Merge pull request sass#2871 from mgreter/bugfix/ci-mac-shared-tests
afaeddb Fix spec testing on mac with shared build
4b8b9fd Merge pull request sass#2868 from glebm/fix-isdigit
4c0b030 Remove obsolete unit tests
4f9c7ae Fix incorrect call to `std::isdigit`
9e937b4 Merge pull request sass#2864 from mgreter/bugfix/issue-2863
55685f5 Remove unquoting for str_slice, str-insert and str-index
68d3528 Merge pull request sass#2865 from mgreter/bugfix/remove-ci-sass-version-flag
689295a Remove passing version flag to spec runner
28bbd0e Copy Unicode PWD tests from sass-spec (sass#2855)
8e681e2 Fix heap-buffer-overflow in prelexer.hpp:70 (sass#2857)
d382603 Fix invalid `operator<` for `Selector_List` (sass#2858)
69ae7ef Error on incomplete `@supports` clause in parser (sass#2860)
fef6c6a Fix heap-use-after-free in `eval.cpp` (sass#2859)
2050492 Make Makefile compatible with GNU Make >= 3.79.1 (sass#2853)
6df8cd9 Newlines: Parse \f and normalize in comments (sass#2849)
ceedaeb Fix GCC warning: Catching polymorphic type by value (sass#2848)
c55821a Remove _Ptr(_Const) typedefs (sass#2847)
20b91ef Avoid modifying Expression in ast_node_to_sass_value
bc55151 Fix mixin-exists and function-exists in local scopes
c1417f1 Bump AppVeyor Ruby version
75ee520 Install hrx gem in Windows CI
c16bee1 Install hrx gem in CI
54cb8be Fix one more I missed due to faulty sed
41df7ac Fix broken markdown link
b97b010 https-ify sass-lang.com urls
b260394 Add comment about order to all sass.hpp includes
337e30e Ensure sass.hpp is included before system headers
c6b972e Avoid clang warning: expression with side effects will be evaluated despite being used as an operand to 'typeid'
2c47dbb Fixed typos
750a62d Merge pull request sass#2792 from mgreter/bugfix/compare-doubles-epsilon
7700049 travis: Disable coverage for static OSX build
7805af8 indentation
663f94e Simplify string concatenation
4f9f662 Catch exceptions by reference
6cb1927 Remove unused src/functions.{h,c}pp
664a9c2 Fix VS2013 warning C4800 in src/ast_selectors.cpp
7223f84 Fix number comparison for floats/doubles by calculations
83e8513 Merge pull request sass#2790 from mgreter/feature/hsla-colors
931d9ba Merge pull request sass#2789 from mgreter/refactor-number-inspect
4cda362 Add deprecation for hsla with percentage alpha
aa9852b Implement internal HSLA color representation
aabb867 Refactor inspection/output of numbers
e94b5f9 Disallow parent selector in selector_fns arguments
c4ccba9 Disallow optional pseudo_prefix
9d027c9 Set without_rule flat only when explicitly requested by at_root
b21fb9f Fix #2782: heap-use-after-free in expand.cpp
ace6628 Re-implement selector unification
598bade Merge pull request sass#2774 from glebm/ast-sel-loops
c29a774 Merge pull request sass#2771 from mgreter/feature/remote-win-unc-locations
cda81f6 Enable to read remote UNC locations on windows
49d2e92 Refactor loops in Selector::unify_with
c450582 Merge pull request sass#2770 from mgreter/roundhouse-cleanup-03
be88fdc Fix clang warnings
5d50c96 Cleanup AST values compare operators
93c62e8 Split AST declarations and definitions
98aede5 Move AST supports into own compile units
058e763 Split AST declarations and definitions
c3e4ca5 Merge pull request sass#2769 from mgreter/feature/improve-compare-operators
41e0775 Replace `to_string` compare with `==` object compare
80fd573 Rename element to type selector and type enums
7a29ca8 Cleanup and fix selector compare operators
7141c01 Merge pull request sass#2768 from mgreter/roundhouse-cleanup-02
bfb02ef Fix clang warnings
c1990ed Move AST values into own compile units
bfece18 Move AST selectors into own compile units
7634b1c Remove debugger from fn_miscs
2cabd11 Update utfcpp to v2.3.6
b09e813 Refactor: Add `starts/ends_with` functions
280ffd8 Fix crash in `selector-append('.x~~', 'a')`
2a4935c Clean up `Compound_Selector::operator==`
c04f5d7 Implement passing arguments to @content
eb15533 Fix memory leak in `parse_ie_keyword_arg`
c93f058 Disallow parent selectors in `selector-append` (sass#2760)
5c2501e Run C++ unit tests on CI (Makefile-only)
a8bc4d6 SharedPtr improvements
2494f0e Minor fix: Reserve lists with correct sizes
84eaca2 Add a copy constructor to InvalidSass exception
5801404 Fix out-of-range string access in special_number
534065c MSVC warning and fix sass#2627
8f40dc0 Optimize line_begin/end search in `handle_error`
930857c Fix heap-use-after-free in Parser error handling
122d9f3 Clean up `Selector_List::operator==`
754b338 Travis ASan: Use default Travis clang (v5.0)
4589d07 Fix a memory leak in `rgba_2`
0df09e6 Add /plugins/ to .gitignore
9df83e1 Do not use `0` for initializing SharedImpl
546f8e9 Selector unification: use == for comparison
514c9c7 Fix 2 more memory leaks
6c8285b .travis.yml: `sudo: required` for ptrace support
5e58c35 AST: Fix clang warnings, add const, remove virtual
fa93c5a Revert "SharedPtr: Remove explicit `detached` bool"
fdff442 Revert "SharedPtr: More cleanup"
430315a Fix memory leak in resolve_parent_refs
f442421 Fix memory leak introduced in March
3e60b12 Add and use a `unification_order` method
3364372 Fix selector unification ordering
ec249e4 AST: Add `final` specifier to final classes
c87a63e Use -std=c++11
d09d09d Actually fix coveralls failures
d225a09 Fix ignored :not(multiple, selectors)
ab03dc0 Disable failing coverage check
f477cd6 Makefile cleanup
392ffe1 SharedPtr: More cleanup
a8273fc Remove -undefined error, --no-undefined LDFLAGS
2ebf465 SharedPtr: Remove explicit `detached` bool
5baf0fa Docs: Profiling
e04f200 Set default precision to 10 in Sass_Output_Options
5d46c6f Use precision 10 by default (sass#2730)
3066614 Makefile: Use order-only deps for directories (sass#2728)
0331b61 Update link to perl-libsass implementation
ad30194 Update make CC and CXX defaults for wider compat
edd29a2 Make plugin tests run with a precision of 5
fbdcc37 Support hex colors with alpha channels
0fa69a5 Fix -Wmissing-declarations for gcc < 7
38f4c36 Fix possible bug with handling empty reference combinators
ea0e397 Revert "Add configuration for supporting additional extensions as .scss"
79c16c9 Revert "Remove raw css imports"
15bdef9 Create CODE_OF_CONDUCT.md
b3374e3 Fix handling of unclosed interpolant in url
df8152d Remove legacy workaround for parsing modulo operator
45f5087 Update Readme.md
5ca21ca Adds another Nim implementation
3a81850 Include <stdexcept> in operation.hpp
abf78cc Merge pull request sass#2642 from mgreter/bugfix/2640-selector-nest-explosion
4254054 Fix explosion of parent selectors in selector-nest
95011cd Add deprecation messages for color arithmetic
0bc35e3 Fix segfault on empty custom properties
9266d26 Update compatibility section of the read me
137a4dd Mentioned SharpScss and LibSassHost in implementations.md
62effe1 Fix regression in parsing selector with trailing escaped colon
e28ebaf Fix merging of nested media queries with not
17a83f6 Emit transparent colors as rgba(0, 0, 0, 0)
f315c93 Inline out_of_memory macro
1da6264 Remove raw css imports
e690924 Add configuration for supporting additional extensions as .scss
3af837c Add support for index imports
b866ad5 Fix link to node-sass implementation
03c99f5 Fix ordering in implementations list
facbab8 Include Haskell bindings in implementations list
c0a5a21 Allow "!" in custom property values
3708853 Merge pull request sass#2607 from mgreter/bugfix/issue-2203
7e02bc0 Merge pull request sass#2606 from mgreter/bugfix/issue-2604
5f94d71 Delay interpolated expression as in regular CSS
3db67c5 Merge pull request sass#2603 from mgreter/bugfix/issue-2360
5120bdb Fix edge case converting achromatic colors to HSL
1198007 Allow colors in `@at` directives
87565ec Merge pull request sass#2602 from mgreter/sass2scss/upgrade
0dee7ad Upgrade sass2scss to version 1.1.2
569d43c Merge pull request sass#2601 from mgreter/build/automake
f67b9c3 Fix automake build if sassc is missing
1f56197 Merge pull request sass#2597 from mgreter/bugfix/issue-2593
91dd504 Adjust output/error for modulo zero operation
035bfef Merge pull request sass#2594 from mgreter/cleanup/roundhouse-1
5564ab3 Replace direct references with methods
09b36b0 Add EnvStack typedef
8f0bdc7 Remove obsolete function constructor arguments
090bab3 Add get method for environment class
6e79ff7 Add display name for color to debugger
e0321a0 Enhance stacktrace to report column numbers
d0b6338 Clean up function macros and force to return PreValues
37e15bb Change `String_Schema` to only hold `PreValue` objects
0c5e27c Clean up `get_arg_m` in `fn_utils`
025dc4e Pass traces instead of full context to bind
72e9a04 Fix parsing of colors (remove dynamic cast on eval)
bbfcf49 Add distinct `Parent_Reference` class for values
4c34d16 Remove obsolete `in_selector` flag
205dc65 Remove Function_Call_Schema class
0599b2e Remove obsolete parameters
10c25da Make Value inherit from PreValue
064d6de Move AST memory macros to macro header
efc0331 Rename ast2c and move c2ast to own compile unit
aa7386f Cleanup CRTP implementation
7cb696a Rename stacks to use shorter typedefs
c1b3676 Move misc functions to own compile unit
47354ad Move map functions to own compile unit
4d1e036 Move list functions to own compile unit
ac4e48b Move string functions to own compile unit
37cfb4c Move color functions to own compile unit
83f641c Move selector functions to own compile unit
8b74ede Move number functions to own compile unit
c07f4a3 Protect some header defines from redefining
d828027 Move macros and helpers to fn_utils
0dad856 Add functions utility compile unit
REVERT: 39e3087 Update plugin test script to use precision 5
REVERT: 9ce7a7f Fix possible bug with handling empty reference combinators
REVERT: 7459d19 Support hex colors with alpha channels
REVERT: 924cb48 Fix -Wmissing-declarations for gcc < 7
REVERT: c0a6cf3 Fix handling of unclosed interpolant in url
REVERT: 210fdff Remove legacy workaround for parsing modulo operator
REVERT: 19fd2bf Revert "Separate out deprecated import file extensions"
REVERT: 9a211eb Revert "Add a deprecation warning for @import's that resolved .css files"
REVERT: 55abf76 Revert "Add configuration for supporting additional extensions as .scss"
REVERT: 33718b0 Revert "Remove raw css imports"
REVERT: d18fd47 Add deprecation messages for color arithmetic
REVERT: 1e52b74 Revert "Upgrade sass2scss to version 1.1.2"
REVERT: 8a6ba8f Mentioned SharpScss and LibSassHost in implementations.md
REVERT: 6036d5d Fix link to node-sass implementation
REVERT: f5b854f Fix ordering in implementations list
REVERT: d91b4bf Include Haskell bindings in implementations list
REVERT: e351212 Fix segfault on empty custom properties
REVERT: 27d5026 Remove raw css imports
REVERT: 6fe62e9 Add configuration for supporting additional extensions as .scss
REVERT: c287f31 Emit transparent colors as rgba(0, 0, 0, 0)
REVERT: 5ff5859 Fix regression in parsing selector with trailing escaped colon
REVERT: 0e6d8a6 Fix merging of nested media queries with not
REVERT: 5539920 Inline out_of_memory macro
REVERT: fd989f6 Add a deprecation warning for @import's that resolved .css files
REVERT: b9662fc Separate out deprecated import file extensions
REVERT: 77f1323 Allow "!" in custom property values
REVERT: 07222d6 Fix parsing of colors (remove dynamic cast on eval)
REVERT: 046b32a Delay interpolated expression as in regular CSS
REVERT: 2807587 Fix edge case converting achromatic colors to HSL
REVERT: b0077d6 Allow colors in `@at` directives
REVERT: ca89d73 Upgrade sass2scss to version 1.1.2
REVERT: 69a0dfa Fix automake build if sassc is missing
REVERT: e5421e6 Adjust output/error for modulo zero operation

git-subtree-dir: src/libsass
git-subtree-split: e1c16e0

* Update libsass.gyp and libsass version number

* Update test fixtures

Update a test fixture due to changes in the quote function no longer
accepting non-string input.
saper pushed a commit to saper/node-sass that referenced this issue May 17, 2020
* Squashed 'src/libsass/' changes from 39e3087..e1c16e0

e1c16e0 Merge pull request sass#3027 from mgreter/bugfix/misc-segfaults
0b721e0 Fix out of boundary vector access
994695c Fix out of boundary vector access
d2390e5 Fix nullptr access on interpolated parents
081bbbf Merge pull request sass#3021 from mgreter/bugfix/3018-nested-sel-nl-ws
a089875 Merge pull request sass#3022 from mgreter/bugfix/3019-extend-error-src-lifetime
ed91ca4 Extend `error_src` lifetime on c-api context
5c267e1 Preserve indentation for media rules in nested mode
0790fc8 Fix indentation for parents with newlines in nested mode
f7567ea Merge pull request sass#3015 from mgreter/bugfix/3014-mem-leak-in-permutate
0537dd2 Fix possible memory leak in permutation function
e820c83 Merge pull request sass#3007 from mgreter/bugfix/3006-extend-with-parent
e116b49 Merge pull request sass#3002 from mgreter/bugfix/2998-extend-compound-warning
fdf63e4 Fix trim loop condition and outer continue
1ec3876 Fix extend issue being stuck in endless loop
16365c1 Fix compound extend warning
4da7c4b Merge pull request sass#2997 from mgreter/bugfix/2884-attribute-selector-equality
04a234a Merge pull request sass#2990 from jquense/parse-unknown-psuedos
23cabbe Merge pull request sass#2996 from mgreter/bugfix/2980-fix-unary-expr-eval
408a883 Merge pull request sass#2995 from mgreter/bugfix/2994-endless-extend-loop
deeebbf Fix attribute selector equality (include modifier)
3d806e6 Fix evaluation of unary expressions in loops
c3fdce9 Fix selector `isInvisible` logic
35b3293 Assorted typo fixes. (sass#2986)
b894c52 README.md: Document that GCC 4.7+ is required
9932747 Compressed style: Fix space removal after ancestor
0488cee util_string cleanup: Remove const-ref arg rtrim
4f22bee unrecognized psuedos with arguments parse as declaration-values
8e22cd4 math.h is deprecated
fbbadbf revert concurrent compilation (sass#2977)
4e89f57 Document the need to use `sass_free_memory`
e340781 Improve doc markdown syntax formatting
931d381 Merge pull request sass#2968 from mgreter/docs/data-context
62187f0 Improve data context documentation
eb54de6 Merge pull request sass#2949 from nschonni/fix--non-integers-passed-to-str-slice
2263d9b Merge pull request sass#2951 from nschonni/fix--str-slice-can't-start-at-0
6ea4cb2 Merge pull request sass#2950 from nschonni/fix--throw-on-weitht-passed-to-CSS3-invert
996dbb3 Merge pull request sass#2945 from nschonni/fix--Error-on-non-int-str-insert-index
2b8a17a Merge pull request sass#2953 from mgreter/bugfix/mac-osx-build
e913264 Fix bug in scale-color with positive saturation (sass#2954)
50feccb Use dylib instead of so on Mac OSX
58d1066 Merge pull request sass#2946 from nschonni/fix--Update-comparable-signiture
1587a2a Merge pull request sass#2948 from nschonni/fix--Update-"call"-parameter-to-$function
1e23b4d fix: Error on non-int str-insert index
5ac3b7d fix: Update comparable signiture
44e7a9e fix: non-integers passed to str-slice
d972c50 fix: throw on weitht passed to CSS3 invert()
1c2ae95 fix: str-slice can't start at 0
d5d30da fix: Update "call" parameter to $function
ac338df Merge pull request sass#2933 from nschonni/fix--Error-on-empty-min/max-call
2c22d56 Merge pull request sass#2929 from nschonni/fix-feature-exists-param-name
c81a8e5 Merge pull request sass#2934 from nschonni/fix(mix)--Align-argurment-names-to-color1/color2
0f3d6ad Merge pull request sass#2939 from nschonni/add-interactive-test
7442be5 Merge pull request sass#2930 from nschonni/chore--Ignore-MS-IDE-caches
acfcd6f Merge pull request #2935 from nschonni/fix--ExitorConfig-glob-for-Makefiles
34490a5 chore: Add test_interactive build target
d6606e3 fix: ExitorConfig glob for Makefiles
948f126 fix: Error on empty min/max call
3844174 fix(mix): Align argurment names to color1/color2
031d358 chore: Ignore MS IDE caches
6d23160 fix(feature-exists): Parameter name to "feature"
c713140 Use `Util::ascii_*` in prelexer
03bf13c Add and use our own ASCII routines
9616e95 Minor fixes / enhancements
773bba7 Merge pull request sass#2908 from mgreter/feature/selectors-backport
7c40b00 Add comments to debug hanging appveyor builds
3d61646 Disable unused sass 4.0 code-paths
2c4b0c3 Fix and improve last extend refactoring bits
3e8e941 Restore old compound extend behavior (with deprecation)
f964dcd Refactor selectors and extend (back-port from dart-sass)
4d229af Merge pull request sass#2909 from glebm/ptr-comparison
0bab610 VS2013 noexcept workaround
dfe23ac Add comparison operators for SharedImpl, fix bugs
0328de2 Read files using <cstdio> for better portability
a46a281 Remove abspath from native Makefile
1edc51c Makefile: Fix STATIC_LIBSTDCPP support
5ebc5d5 [build] add support of Visual Studio 2017 and 2019 to the Visual C++ project file (sass#2891)
04f59a5 Remove the link to `ast_factory.hpp` from Visual C++ project files
21d2d16 [build] enable concurrent compilation (sass#2888)
0d08be9 travis: add gcc-8 to CI (sass#2889)
8d220b7 Delete extconf.rb
c51f442 Forbid empty custom property values
f2db048 Make `parse_css_variable_value` non-recursive
e53c7f8 Fix `inspect` for quoted strings
34ba25e Makefile: Mark test* targets as .PHONY
5ae2e81 Disallow non-string argument to `quote`
9740de6 Merge pull request sass#2866 from mgreter/ntqa/del-obsolete-unit-tests
bfa4472 Merge pull request sass#2871 from mgreter/bugfix/ci-mac-shared-tests
afaeddb Fix spec testing on mac with shared build
4b8b9fd Merge pull request sass#2868 from glebm/fix-isdigit
4c0b030 Remove obsolete unit tests
4f9c7ae Fix incorrect call to `std::isdigit`
9e937b4 Merge pull request sass#2864 from mgreter/bugfix/issue-2863
55685f5 Remove unquoting for str_slice, str-insert and str-index
68d3528 Merge pull request sass#2865 from mgreter/bugfix/remove-ci-sass-version-flag
689295a Remove passing version flag to spec runner
28bbd0e Copy Unicode PWD tests from sass-spec (sass#2855)
8e681e2 Fix heap-buffer-overflow in prelexer.hpp:70 (sass#2857)
d382603 Fix invalid `operator<` for `Selector_List` (sass#2858)
69ae7ef Error on incomplete `@supports` clause in parser (sass#2860)
fef6c6a Fix heap-use-after-free in `eval.cpp` (sass#2859)
2050492 Make Makefile compatible with GNU Make >= 3.79.1 (sass#2853)
6df8cd9 Newlines: Parse \f and normalize in comments (sass#2849)
ceedaeb Fix GCC warning: Catching polymorphic type by value (sass#2848)
c55821a Remove _Ptr(_Const) typedefs (sass#2847)
20b91ef Avoid modifying Expression in ast_node_to_sass_value
bc55151 Fix mixin-exists and function-exists in local scopes
c1417f1 Bump AppVeyor Ruby version
75ee520 Install hrx gem in Windows CI
c16bee1 Install hrx gem in CI
54cb8be Fix one more I missed due to faulty sed
41df7ac Fix broken markdown link
b97b010 https-ify sass-lang.com urls
b260394 Add comment about order to all sass.hpp includes
337e30e Ensure sass.hpp is included before system headers
c6b972e Avoid clang warning: expression with side effects will be evaluated despite being used as an operand to 'typeid'
2c47dbb Fixed typos
750a62d Merge pull request sass#2792 from mgreter/bugfix/compare-doubles-epsilon
7700049 travis: Disable coverage for static OSX build
7805af8 indentation
663f94e Simplify string concatenation
4f9f662 Catch exceptions by reference
6cb1927 Remove unused src/functions.{h,c}pp
664a9c2 Fix VS2013 warning C4800 in src/ast_selectors.cpp
7223f84 Fix number comparison for floats/doubles by calculations
83e8513 Merge pull request sass#2790 from mgreter/feature/hsla-colors
931d9ba Merge pull request sass#2789 from mgreter/refactor-number-inspect
4cda362 Add deprecation for hsla with percentage alpha
aa9852b Implement internal HSLA color representation
aabb867 Refactor inspection/output of numbers
e94b5f9 Disallow parent selector in selector_fns arguments
c4ccba9 Disallow optional pseudo_prefix
9d027c9 Set without_rule flat only when explicitly requested by at_root
b21fb9f Fix #2782: heap-use-after-free in expand.cpp
ace6628 Re-implement selector unification
598bade Merge pull request sass#2774 from glebm/ast-sel-loops
c29a774 Merge pull request sass#2771 from mgreter/feature/remote-win-unc-locations
cda81f6 Enable to read remote UNC locations on windows
49d2e92 Refactor loops in Selector::unify_with
c450582 Merge pull request sass#2770 from mgreter/roundhouse-cleanup-03
be88fdc Fix clang warnings
5d50c96 Cleanup AST values compare operators
93c62e8 Split AST declarations and definitions
98aede5 Move AST supports into own compile units
058e763 Split AST declarations and definitions
c3e4ca5 Merge pull request sass#2769 from mgreter/feature/improve-compare-operators
41e0775 Replace `to_string` compare with `==` object compare
80fd573 Rename element to type selector and type enums
7a29ca8 Cleanup and fix selector compare operators
7141c01 Merge pull request sass#2768 from mgreter/roundhouse-cleanup-02
bfb02ef Fix clang warnings
c1990ed Move AST values into own compile units
bfece18 Move AST selectors into own compile units
7634b1c Remove debugger from fn_miscs
2cabd11 Update utfcpp to v2.3.6
b09e813 Refactor: Add `starts/ends_with` functions
280ffd8 Fix crash in `selector-append('.x~~', 'a')`
2a4935c Clean up `Compound_Selector::operator==`
c04f5d7 Implement passing arguments to @content
eb15533 Fix memory leak in `parse_ie_keyword_arg`
c93f058 Disallow parent selectors in `selector-append` (sass#2760)
5c2501e Run C++ unit tests on CI (Makefile-only)
a8bc4d6 SharedPtr improvements
2494f0e Minor fix: Reserve lists with correct sizes
84eaca2 Add a copy constructor to InvalidSass exception
5801404 Fix out-of-range string access in special_number
534065c MSVC warning and fix sass#2627
8f40dc0 Optimize line_begin/end search in `handle_error`
930857c Fix heap-use-after-free in Parser error handling
122d9f3 Clean up `Selector_List::operator==`
754b338 Travis ASan: Use default Travis clang (v5.0)
4589d07 Fix a memory leak in `rgba_2`
0df09e6 Add /plugins/ to .gitignore
9df83e1 Do not use `0` for initializing SharedImpl
546f8e9 Selector unification: use == for comparison
514c9c7 Fix 2 more memory leaks
6c8285b .travis.yml: `sudo: required` for ptrace support
5e58c35 AST: Fix clang warnings, add const, remove virtual
fa93c5a Revert "SharedPtr: Remove explicit `detached` bool"
fdff442 Revert "SharedPtr: More cleanup"
430315a Fix memory leak in resolve_parent_refs
f442421 Fix memory leak introduced in March
3e60b12 Add and use a `unification_order` method
3364372 Fix selector unification ordering
ec249e4 AST: Add `final` specifier to final classes
c87a63e Use -std=c++11
d09d09d Actually fix coveralls failures
d225a09 Fix ignored :not(multiple, selectors)
ab03dc0 Disable failing coverage check
f477cd6 Makefile cleanup
392ffe1 SharedPtr: More cleanup
a8273fc Remove -undefined error, --no-undefined LDFLAGS
2ebf465 SharedPtr: Remove explicit `detached` bool
5baf0fa Docs: Profiling
e04f200 Set default precision to 10 in Sass_Output_Options
5d46c6f Use precision 10 by default (sass#2730)
3066614 Makefile: Use order-only deps for directories (sass#2728)
0331b61 Update link to perl-libsass implementation
ad30194 Update make CC and CXX defaults for wider compat
edd29a2 Make plugin tests run with a precision of 5
fbdcc37 Support hex colors with alpha channels
0fa69a5 Fix -Wmissing-declarations for gcc < 7
38f4c36 Fix possible bug with handling empty reference combinators
ea0e397 Revert "Add configuration for supporting additional extensions as .scss"
79c16c9 Revert "Remove raw css imports"
15bdef9 Create CODE_OF_CONDUCT.md
b3374e3 Fix handling of unclosed interpolant in url
df8152d Remove legacy workaround for parsing modulo operator
45f5087 Update Readme.md
5ca21ca Adds another Nim implementation
3a81850 Include <stdexcept> in operation.hpp
abf78cc Merge pull request sass#2642 from mgreter/bugfix/2640-selector-nest-explosion
4254054 Fix explosion of parent selectors in selector-nest
95011cd Add deprecation messages for color arithmetic
0bc35e3 Fix segfault on empty custom properties
9266d26 Update compatibility section of the read me
137a4dd Mentioned SharpScss and LibSassHost in implementations.md
62effe1 Fix regression in parsing selector with trailing escaped colon
e28ebaf Fix merging of nested media queries with not
17a83f6 Emit transparent colors as rgba(0, 0, 0, 0)
f315c93 Inline out_of_memory macro
1da6264 Remove raw css imports
e690924 Add configuration for supporting additional extensions as .scss
3af837c Add support for index imports
b866ad5 Fix link to node-sass implementation
03c99f5 Fix ordering in implementations list
facbab8 Include Haskell bindings in implementations list
c0a5a21 Allow "!" in custom property values
3708853 Merge pull request sass#2607 from mgreter/bugfix/issue-2203
7e02bc0 Merge pull request sass#2606 from mgreter/bugfix/issue-2604
5f94d71 Delay interpolated expression as in regular CSS
3db67c5 Merge pull request sass#2603 from mgreter/bugfix/issue-2360
5120bdb Fix edge case converting achromatic colors to HSL
1198007 Allow colors in `@at` directives
87565ec Merge pull request sass#2602 from mgreter/sass2scss/upgrade
0dee7ad Upgrade sass2scss to version 1.1.2
569d43c Merge pull request sass#2601 from mgreter/build/automake
f67b9c3 Fix automake build if sassc is missing
1f56197 Merge pull request sass#2597 from mgreter/bugfix/issue-2593
91dd504 Adjust output/error for modulo zero operation
035bfef Merge pull request sass#2594 from mgreter/cleanup/roundhouse-1
5564ab3 Replace direct references with methods
09b36b0 Add EnvStack typedef
8f0bdc7 Remove obsolete function constructor arguments
090bab3 Add get method for environment class
6e79ff7 Add display name for color to debugger
e0321a0 Enhance stacktrace to report column numbers
d0b6338 Clean up function macros and force to return PreValues
37e15bb Change `String_Schema` to only hold `PreValue` objects
0c5e27c Clean up `get_arg_m` in `fn_utils`
025dc4e Pass traces instead of full context to bind
72e9a04 Fix parsing of colors (remove dynamic cast on eval)
bbfcf49 Add distinct `Parent_Reference` class for values
4c34d16 Remove obsolete `in_selector` flag
205dc65 Remove Function_Call_Schema class
0599b2e Remove obsolete parameters
10c25da Make Value inherit from PreValue
064d6de Move AST memory macros to macro header
efc0331 Rename ast2c and move c2ast to own compile unit
aa7386f Cleanup CRTP implementation
7cb696a Rename stacks to use shorter typedefs
c1b3676 Move misc functions to own compile unit
47354ad Move map functions to own compile unit
4d1e036 Move list functions to own compile unit
ac4e48b Move string functions to own compile unit
37cfb4c Move color functions to own compile unit
83f641c Move selector functions to own compile unit
8b74ede Move number functions to own compile unit
c07f4a3 Protect some header defines from redefining
d828027 Move macros and helpers to fn_utils
0dad856 Add functions utility compile unit
REVERT: 39e3087 Update plugin test script to use precision 5
REVERT: 9ce7a7f Fix possible bug with handling empty reference combinators
REVERT: 7459d19 Support hex colors with alpha channels
REVERT: 924cb48 Fix -Wmissing-declarations for gcc < 7
REVERT: c0a6cf3 Fix handling of unclosed interpolant in url
REVERT: 210fdff Remove legacy workaround for parsing modulo operator
REVERT: 19fd2bf Revert "Separate out deprecated import file extensions"
REVERT: 9a211eb Revert "Add a deprecation warning for @import's that resolved .css files"
REVERT: 55abf76 Revert "Add configuration for supporting additional extensions as .scss"
REVERT: 33718b0 Revert "Remove raw css imports"
REVERT: d18fd47 Add deprecation messages for color arithmetic
REVERT: 1e52b74 Revert "Upgrade sass2scss to version 1.1.2"
REVERT: 8a6ba8f Mentioned SharpScss and LibSassHost in implementations.md
REVERT: 6036d5d Fix link to node-sass implementation
REVERT: f5b854f Fix ordering in implementations list
REVERT: d91b4bf Include Haskell bindings in implementations list
REVERT: e351212 Fix segfault on empty custom properties
REVERT: 27d5026 Remove raw css imports
REVERT: 6fe62e9 Add configuration for supporting additional extensions as .scss
REVERT: c287f31 Emit transparent colors as rgba(0, 0, 0, 0)
REVERT: 5ff5859 Fix regression in parsing selector with trailing escaped colon
REVERT: 0e6d8a6 Fix merging of nested media queries with not
REVERT: 5539920 Inline out_of_memory macro
REVERT: fd989f6 Add a deprecation warning for @import's that resolved .css files
REVERT: b9662fc Separate out deprecated import file extensions
REVERT: 77f1323 Allow "!" in custom property values
REVERT: 07222d6 Fix parsing of colors (remove dynamic cast on eval)
REVERT: 046b32a Delay interpolated expression as in regular CSS
REVERT: 2807587 Fix edge case converting achromatic colors to HSL
REVERT: b0077d6 Allow colors in `@at` directives
REVERT: ca89d73 Upgrade sass2scss to version 1.1.2
REVERT: 69a0dfa Fix automake build if sassc is missing
REVERT: e5421e6 Adjust output/error for modulo zero operation

git-subtree-dir: src/libsass
git-subtree-split: e1c16e0

* Update libsass.gyp and libsass version number

* Update test fixtures

Update a test fixture due to changes in the quote function no longer
accepting non-string input.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants