Giter VIP home page Giter VIP logo

Comments (15)

Thom1729 avatar Thom1729 commented on June 2, 2024 3

This is the deliberate result of changes to the consensus on scope naming. In the guidelines, storage.type is used for type names in C-style declarations like int foo;. Since then, storage.type has generally been used for non-type variable declaration keywords like const. After much discussion, the community decided to reserve storage.type for types and use keyword.declaration for other declaratory keywords.

If you prefer the old behavior, you can modify your color scheme to highlight keyword.declaration the same as storage.type.

from babel-sublime.

darve avatar darve commented on June 2, 2024 1

from babel-sublime.

maullerz avatar maullerz commented on June 2, 2024 1

Awesome, thanks!
Simple fix for my Monokai Phoenix.tmTheme and voila! Here is my previous beloved color scheme 🚀

What i was need:

<dict>
  <key>name</key>
  <string>keyword.declaration</string>
  <key>scope</key>
  <string>keyword.declaration</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#66D9EF</string>
  </dict>
</dict>

PS:
more info for customization here:
https://www.sublimetext.com/docs/scope_naming.html#keyword
https://www.sublimetext.com/docs/scope_naming.html#storage

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

Looks like a bug in arrow function return type argument handling in Flow. Can reproduce.

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

Should be fixed in v11.0.1. Thanks for the report.

from babel-sublime.

jacargentina avatar jacargentina commented on June 2, 2024

v11.0.1 installed. Not working yet.

Captura de Pantalla 2021-06-22 a la(s) 10 40 19

Captura de Pantalla 2021-06-22 a la(s) 10 40 27

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

Can you paste the errant code as text?

from babel-sublime.

jacargentina avatar jacargentina commented on June 2, 2024
const ItemLookupScreen = (props: any): React.Node => {
  const data = useContext(DataContext);
  const navigation = useNavigation();
  const {
    request,
    loading,
    error,
    result: apiResult,
  } = useApiAuth(data.apiConfig, 'Items');

  const { setParam, params, ...paginated } = usePaginated(Initial, apiResult);
  const [textFilter, setTextFilter] = useState('');

  useEffect(() => {
    setParam({ filtroTexto: textFilter });
  }, [setParam, textFilter]);

  const seleccionar = (item: ItemDTO) => {
    navigation.navigate('EditarItem', {
      item,
    });
  };

  useEffect(() => {
    request(params);
  }, [request, params]);

  return null;
}

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

v11.0.2 is out with a couple more Flow fixes. Please let me know if this fixes it.

from babel-sublime.

darve avatar darve commented on June 2, 2024

Hello friends,

I'm running the latest version (v11.0.2) and the syntax highlight is still broken for me:

image

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

Can you post the complete text of the file? Or a complete working example?

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

@darve I can't reproduce. Since highlighting is messed up at the beginning of that excerpt, it probably means that the error occurs in other code before the excerpt. Without seeing more of the code, I can't troubleshoot it.

from babel-sublime.

Thom1729 avatar Thom1729 commented on June 2, 2024

@darve Is this still broken, or did it turn out to be something else?

from babel-sublime.

maullerz avatar maullerz commented on June 2, 2024

Hi @Thom1729
I just found that last 2 versions also changed the color of reserved words like const / let / function
Before
Screenshot 2021-06-24 at 12 56 41

After
Screenshot 2021-06-24 at 12 56 09

from babel-sublime.

darve avatar darve commented on June 2, 2024

It would appear it is working as intended then, because I have the same issue as @maullerz... I just assumed it was doing that because something was broken because it looks mighty strange!

from babel-sublime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.